1589Re: [syndication] HTML Encoding BooHoo...
- May 23, 2001In article <188.8.131.52.2.20010523113347.00a82050@...>,
>The same "reversion of entities" affects the <XML> as well, making itThere's a fair bit of code around that removes all tags except a subset
><XML> as the final code to be sent for browser display. This, as some can
>guess, causes problems. Specifically, in IE 6b for Windows, it stops the
>browser display cold - IE thinks an XML document is on its way.
>Now, the "reversion of entities" code in my RSS reader doesn't know about
>HTML - it just blindly reverts < to < and so forth. Is the only solution
>to my problem to make the code understand all the possible HTML entities?
>Or is there something else?
of "Allowable html". PHP even has this as a function built into the
I think the correct way to deal with this is for feed producers to:-
- Only include html in <description>, not <title>
- Escape all reserved characters in <description>
For people who turn feeds into displayable code
- Unescape all escaped reserved characters
- Trim the tags to a sub set that you feel comfortable with for your
And that's it. There's some strange problem with "&" or is that "&&" or
"&&" which I'll ignore for the moment.
It's a SMOP. (Simple Matter Of Programming)
Julian Bond eMail: julian@...
M: +44 (0)77 5907 2173 T: +44 (0)20 7420 4363
ICQ:33679668 tag:So many words, so little time
- << Previous post in topic Next post in topic >>