|
Posted by Andy Dingley on 10/05/06 11:02
Harlan Messinger wrote:
> If you want tags, whether XML or HTML, to appear literally in your
> content you need to use "<" (i.e., less than) instead of "<" and
> ">" (greater than) instead of ">".
Sorry, I'd totally misunderstood the OP's question. Harlan is right
here, assuming that you do want the source code of the XML to be
visible on the page. I thought they'd intended to use the XML as data.
Encode > as well as <, or else you'll go mad trying to keep track. You
don't _always_ have to encode such things, but it's certainly easier
(for humans) if you do
[Back to original message]
|