]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/HTML_inlined_into_Atom_not_necessarily_well-formed.mdwn
8bf97910d82335295742cce9e6895509f526c9e4
[ikiwiki.git] / doc / bugs / HTML_inlined_into_Atom_not_necessarily_well-formed.mdwn
1 If a blog entry contains a HTML named entity, such as the `—` produced by [[plugins/rst]] for blockquote citations, it's pasted into the Atom feed as-is. However, Atom feeds don't have a DTD, so named entities beyond `<`, `>`, `"`, `&` and `'` aren't well-formed XML.
2
3 Possible solutions:
4
5 * Put HTML in Atom feeds as type="html" (and use ESCAPE=HTML) instead
6
7 * Keep HTML in Atom feeds as type="xhtml", but replace named entities with numeric ones,
8   like in the re-escape-entities branch in my repository: http://git.debian.org/?p=users/smcv/ikiwiki.git;a=commitdiff;h=c0eb041c65d0653bacf0d4acb7a602e9bda8888e
9
10 (Also, the HTML in RSS feeds would probably get better interoperability if it was escaped with ESCAPE=HTML rather than being in a CDATA section?)