My blog software is all custom, barring my RSS feed. I'm using Ray Camden's
RSS.cfc. The thing that catches me most of the time are ampersands .
andy
-Original Message-
From: bill turner [mailto:bill.tur...@selectcomfort.com]
Sent: Friday, June 26, 2009 10:32 AM
To: cf-talk
Subject:
You may like to try:
description![CDATA[#post#]]/description
However, the xmlformat will definately be cleaning up any invalid xml
characters; are you using it in the title, etc? Perhaps it could be an
encoding issue.
Dominic
2009/6/26 bill turner bill.tur...@selectcomfort.com:
XMLFormat() does NOT clean up all invalid XML characters, it still
leaves in a lot of bar chars that will mess up XML readers. I think
there is a function on cflib that does a better job, I wrote one too a
while back:
http://www.stillnetstudios.com/2008/09/14/cleaning-up-non-ascii-characters/
This string should clean up your data. It work fine for the XML generators
I've written, and they're in use on several sites.
#ReplaceList(XmlFormat(YOURFIELDNAME),amp;trade;,amp;reg;,amp;copy;,#
#x2122;,##x00AE;,##xA9;)#
Robert B. Harrison
Director of Interactive Services
Austin Williams
125
if I wrap in CDATA, won't I lose the html markup?
You may like to try:
description![CDATA[#post#]]/description
However, the xmlformat will definately be cleaning up any invalid xml
characters; are you using it in the title, etc? Perhaps it could be an
encoding issue.
Dominic
This seems logical, but not sure it will solve my problem. The problems are
often things like single quotes that are some sort of special encoding that is
not recognized. I was hoping to find something that cleans up all such data
and/or be able to dynamically call an rss validator to test my
Thanks, Ryan. I will look into this.
XMLFormat() does NOT clean up all invalid XML characters, it still
leaves in a lot of bar chars that will mess up XML readers. I think
there is a function on cflib that does a better job, I wrote one too a
while back:
I've downloaded Ray's cfc. I'll dig into that a bit later.
Thanks, Andy!
Bill
My blog software is all custom, barring my RSS feed. I'm using Ray Camden's
RSS.cfc. The thing that catches me most of the time are ampersands .
andy
I wrote a blog using CF (actually, I started with someone
2009/6/26 bill turner bill.tur...@selectcomfort.com:
if I wrap in CDATA, won't I lose the html markup?
No, as long as you don't use XmlFormat or another XML cleaning
function, you're markup will remain intact. CDATA tells the parser not
to parse the contents as XML.
Dominic
9 matches
Mail list logo