mu.nu - Fighting attention deficit disorder wherever it - ooh, shiny!
September 28, 2005
I
want to create an XML index for my blog. The problem is that since the
contents of the posts (and comments) are to appear as values of XML
elements, they have to be entity-encoded. In particular "<" has
to appear as "<" and ">" has to appear as
">". Is there a way that I can get MT to do that?
Right now I am using a kluge which you can see here,
in which I use "$|" for "<" and "|$" for ">", then I make
the four substitutions by hand (<, >, $|, |$, go to
<, >, <, >, respectively, and in
that order).
If I can't make MT do what I want, can I write a PHP script that will
do this transformation for me on the server (so the url will give me
what I want)?
If so, how do I do it?
If not, got any other ideas?
Posted by: David Boxenhorn at 02:18 PM | Comments (8) | Add Comment | Trackbacks (Suck)
<$MTEntryBody encode_xml="1"$>
Posted by: Rob @ at September 28, 2005 05:05 PM
...now why didn't I think of that?
Posted by: David Boxenhorn @ at September 28, 2005 09:06 PM
Posted by: Rob @ at September 29, 2005 12:58 PM
Posted by: David Boxenhorn @ at September 29, 2005 10:15 PM
Processing 0.01, elapsed 0.014 seconds.
22 queries taking 0.0113 seconds, 26 records returned.
Page size 8 kb.
Powered by Minx 0.8 beta.