Skip to main content
Inspiring
February 20, 2009
Question

CF function to parse/escape bad characters in xml for rss feed

  • February 20, 2009
  • 3 replies
  • 461 views
hi guys

im creating my first rss feed and i believe one needs to remove/escape certain characters from the xml

is that right?

im pressuming theres a cffunction for this handful of promising sounding ones i found all caused errors which i didnt understand so i thought i'd ask for a pointer in the right direction

sorry if this is silly question

TIA
This topic has been closed for replies.

3 replies

Nick WayAuthor
Inspiring
March 1, 2009
thanks to everyone for their replies

there is also this <something><![CDATA[#xmlformat(rs_data.var1)#]]></something>

not strictly cf but if youre setting up a rss feed you might need it so i post it here in case it helps you


BKBK
Community Expert
Community Expert
February 21, 2009
xmlFormat() to escape characters in XML or HTMLEditFormat() for same in HTML.

Inspiring
February 20, 2009
> im pressuming theres a cffunction for this handful of promising sounding ones
> i found all caused errors which i didnt understand so i thought i'd ask for a
> pointer in the right direction

here is a pointer in the right direction:
http://livedocs.adobe.com/coldfusion/8/functions-pt0_02.html

Note the bottom category.

--
Adam