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

  • Home
  • SEARCH
  • 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 6089353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:05:24+00:00 2026-05-23T12:05:24+00:00

My understanding of RSS’s escaped HTML is that something like this: HTML: 1 <

  • 0

My understanding of RSS’s “escaped HTML” is that something like this:

HTML:

1 < 3

becomes (RSS):

1 < 3

So, then, should this:

<img src="http://somehost/someimage?a=foo&amp;b=bar" />

Become:

&lt;img src="http://somehost/someimage?a=foo&amp;amp;b=bar" /&gt;

(Note the &amp;amp; If yes, is this then invalid RSS?

<description>
    ...
    &#60;img src="http://d.yimg.com/a/p/ap/20110309/capt.f6...02-0.jpg?x=91&amp;y=130&amp;q=85&amp;sig=6oI7fIgN0izc9olfgY56vw--" />
</description>

(Additionally, is the fact that the closing > isn’t escaped bad?)

The problem with the above <description> that I’m having is that once you decode the first layer of entities (XML) to arrive at the contents of the <description> tag, you get one long CDATA, which should be HTML. The problem is that the <img> has just a &, which is an invalid entity. For the massive chunk above, I get something like <img src="....?x=1&y=2" />, which isn’t valid HTML.

Am I just looking at crappy HTML that got shoved into RSS, or am I missing something here?

  • 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-23T12:05:25+00:00Added an answer on May 23, 2026 at 12:05 pm

    you need to use CDATA Sections

    <description><![CDATA[ <img src="http://somehost/someimage?a=foo&amp;b=bar" /> ]]>
    </description>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Understanding that I should probably just dig into the source to come up with
My understanding of C# says (thanks to Jeff Richter & Jon Skeet) that assignment
My understanding is that count and length should return the same number for Ruby
My understanding is that Thread.Abort should raise a ThreadAbortException on a blocked thread, however
Understanding that if someone had JavaScript disabled the site would not work then is
My understanding of the Git pack file format is something like: Where the table
My understanding is that a 'convenience' method such as [nsnumber initWithInt] should create a
My understanding is that Java's implementation of regular expressions is based on Perl's. However,
My understanding of the Integer.TryParse() function was that it tried to parse an integer
My understanding is that PHP's p* connections is that it keeps a connection persistent

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.