Question

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?

Was it helpful?

Solution

I use this code for replace < /source> in theme

  $content_this =  render($content['body']);
  print str_replace("</source>","",$content_this);

in node.tpl.php

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top