On 7/25/06, Bill de hÓra <[EMAIL PROTECTED]> wrote:

It came up on django irc. I'd assumed for whatever reason that escaping
was limited to the usual XML suspects, but when asked about html content
I knew I didn't know for sure, especially wrt HTML character entities.
And I didn't know whether Atom code could get away with escaping < and &.

I'm not certain I understand the issue, but if the question concerns
what happens when an Atom processor encounters a document with no
declared entities and contains a title like this:

<atom:title type="html">&lt;b>&nbsp;hmm&lt;b></atom:title>

that is an XML fatal error, no doubt, as the ampersand before "nbsp"
must be escaped. Concretely, Mozilla will give you a DOM with a
non-breaking space if you write this:

<atom:title type="html">&lt;b>&amp;nbsp;hmm&lt;b></atom:title>

--

Robert Sayre

"I would have written a shorter letter, but I did not have the time."

Reply via email to