the_content replaces CDATA close tag (2 posts)

  1. nachoman
    Posted 9 years ago #

    Does anyone know why on line 57 of template-functions-post.php, I have this line:

    $content = str_replace(']]>', ']]>', $content);

    This is in the_content() function. This seems to break every one of my CDATA sections even if everything is correct before that. Why is this here? It doesn't seem to do anything useful except break XHTML Strict compliance.

    I'm willing to be educated, though. :)

  2. spencerp
    Posted 9 years ago #

    Will one of the threads here help maybe?


Topic Closed

This topic has been closed to new replies.

About this Topic