I have a string variable that I'm using dynamically in an XML document, so it's 
necessary to use XMLFormat() or HTMLEditFormat() to change special characters 
like "<", ">", and "&" so that the XML doesn't break.

However, I need to convert those back to their literals before saving to the 
DB, i.e., I need "&gt;" to be converted back to ">", and "&amp;" to be 
converted back to "&", etc.

Is there a CF function that will do this? I haven't been able to find one.

Also, not for CF but for web dev in general, is there a standard term for the 
"&gt;", "&nbsp;", etc. format?

Thanks! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346836
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to