3 ms·
No. In both RSS and Atom the content of the title tag is a string (and is encoded into the XML as required). The question is just if if that string should be tr
by kevincox 2y ago
No. In both RSS and Atom the content of the title tag is a string (and is encoded into the XML as required). The question is just if if that string should be treated as text/plain or text/HTML. RSS doesn't specify.
This type of ambiguity is the main reason that I recommend using Atom.
- ttepasse 2y agoAtom has even three variants of the content model, one where the content is XHTML. As pure text <atom:title atom:type="text">E = mc²</atom:title> As entity-encoded “HTML”: <atom:title atom:type="html>E = mc<sup>2</sup></atom:title> Or as directly embedded XHTML: <atom:title atom:type="xhtml> <div xmlns="http://www.w3.org/1999/xhtml"> <var>E</var> = <var>m</var><var>c</var><sup>2</sup> </div> <atom:title> (The superfluous div element seems to be a result of a compromise for the early 2000s web environment, afair.)