Anyone out there using MovableType to serve up XML?
I need to output all user comments as sanitized XML w/converted line breaks.

So far, I can specify encode_xml="1", but MT wraps the content in a <![CDATA[ ]]>. block, which I don’t want. I can also use encode_html="1" with NoHTMLEntities=1 in the mt.cfg. No matter which I pick, if I also use convert_breaks="1", the encoding options also encode the p and br tags put in by the convert_breaks tag. Grrrr.

All I really need is a convert breaks w/ an ampersand encoder.



Rather than waste more time on the issue, I used Brad Choate’s Regex plugin to do the deed. Comments should now be formatted.

See more posts about: www | All Categories