How can I remove self-closing source tags when rendering HTML markup?
Pregunta
I use this markup in a node body.
<video>
<source src="myvideo.mp4" type="video/mp4" />
my title
</video>
The following markup is instead rendered in the node view.
<video>
<source src="myvideo.mp4" type="video/mp4" />
my title
</source>
</video>
</ source>
is added to the markup, and renders the full HTML not valid.
How can I avoid </ source>
is added?
Solución
I use this code for replace < /source> in theme
$content_this = render($content['body']);
print str_replace("</source>","",$content_this);
in node.tpl.php
Licenciado bajo: CC-BY-SA con atribución
No afiliado a drupal.stackexchange