WordPress.org

Ready to get started?Download WordPress

Forums

sanitize CDATA in feed (2 posts)

  1. ChrisLang
    Member
    Posted 6 years ago #

    I am building a secodary feed within a page that is public, not in a plugin directory. From what I can see is that WP sanitizes the content CDATA item with a call to wp-includes/functions.php apply_filters. Basically replacing " and ' quoutes ect. Am I correct here?

    Can you point me at the correct documenatation to clean the db query of wp_posts.post_content up so my feed validates?

    Also do you have any documentation on what needs to be replaced in a feed so that the content:encoded element will validate? From what I can see WP does not replace the attrubute's double quoutes, just the chars in the text like the " and ' ect.

  2. ChrisLang
    Member
    Posted 6 years ago #

    Now I have the cdata portion of the feed working and now cdata is replacing my " with ?. I am almost there with this. How does Wp deal with this or is this a rss issue?

    Thanks in advance for any help you can give me. Chris Lang

Topic Closed

This topic has been closed to new replies.

About this Topic