Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:52:04+00:00 2026-05-25T06:52:04+00:00

I need to make an RSS feed for my site. The issue is that

  • 0

I need to make an RSS feed for my site. The issue is that the content has been imported and contains inline styles and other markup. Ive looked at various methods but I can’t get it all removed, and some of it stops my feed from validating.

One work around that seems to work is this:

    <![CDATA[ <description>My Content here </description> ]]> 

From what ive read this stops the content from being xml parsed, which is why it validates ok. Ive looked in a few readers and it seems fine, but is their a risk / downside to this method? I don’t really understand the implications so id appreciate any advice or info on tests I could perform.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:52:05+00:00Added an answer on May 25, 2026 at 6:52 am

    This is a perfectly reasonable approach, although you should note that you should use this:

    <description><![CDATA[My Content here]]></description>  
    

    …rather than:

    <![CDATA[ <description>My Content here </description> ]]> 
    

    …as the <description> element is part of the RSS specification, so should be properly present in the RSS, rather than being escaped as text.

    If you’re going to include non-RSS content (typically HTML) in your title and description, especially if it’s user-generated content that might contain a variety of markup or invalid markup, marking the whole content as character data like this is definitely the way to go.

    RSS readers typically expect and cope happily with HTML stored as CDATA in the description element, whereas the XML parsers they use (and anything else parsing your RSS) will likely be quite sensitive to the malformed XML that might be created by including HTML tags, unexpected entities or even just a single “<” in the <description> text without the escaping.

    Use whatever method your XML library provides to insert the content as CDATA, rather than just manually wrapping it with <![CDATA[ and ]]>, too; that way all the thinking (what happens if the content includes ]]>?) will be done for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to make sure that user can run only one instance of my
I am trying to parse an rss feed that is using the well formed
I have generated an rss feed in my custom component in my joomla site.
I need make layout that must look exactly like below 2 sites. How should
I've been tasked with build an accessible RSS feed for my company's job listings.
I have RSS feed link, but I need to obtain date from it. Then
I followed the tutorial from this site: http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone/ to make my first iPhone application,
I have a high traffic website and I need make sure my site is
I like to make an app that reads articles from a website ad RSS
i have one trouble, me need make scrollview with content of pdf(pages), this content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.