WordPress.org

Ready to get started?Download WordPress

Forums

nrelate Related Content
Invalid HTML (CDATA Tags) (3 posts)

  1. NoMad1337
    Member
    Posted 1 year ago #

    Hey,

    When using your PlugIn, my HTML gets broken because of a WordPress filter to convert all ]]> to ]]& gt ; within the_content.
    AFAIK this filter can't be disabled.

    However, in nrelate-related.php @ line 353 the ]]> is escaped, breaking the HTML's validity.

    Could you please deploy the JS within the Head or other filters which don't break the CDATA end-tag?
    Or is there any known method to disable ]]> encoding in the_content without modifying WP core files?

    Thanks, NoMad

    http://wordpress.org/extend/plugins/nrelate-related-content/

  2. NoMad1337
    Member
    Posted 1 year ago #

    OK, shorthand: My Theme uses get_the_content and then escapes ]]>, I disabled the escaping. But pretty much every WP Blog does filter it, so please consider fixing that.
    Also: Style-Tags are used in the body... not valid for XHTML 1.0 Transitional:

    This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head"

  3. @NoMad1337 -- Can you please upgrade to version 0.52 of our plugin(s) and let us know if this issue persists?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic