[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feedback on 0.3 Format




Joe Gregorio wrote:

@mode="escaped" means that if you do a single level of XML unescaping on the content value, then you will get a string in the mime-type listed in @type.


When I say "a single level of XML unescaping" I mean a single pass of turning &lt; into <, &gt; into >, etc.

The word "single" here might be confusing.


If you want to encode "I <3 NY" as text/plain, the following are both acceptable ways to do this:

<title mode="xml" type="text/plain">I &lt;3 NY</title>

<title mode="escaped" type="text/plain">I &amp;lt;3 NY</title>

I tend to refer to the former as single escaping (as required by XML), and the latter as double escaping.

- Sam Ruby