I have a Schema with some RTF fields in it. I need to provide a RSS feed for Components based on this Schema.
The problem is, the RTF fields contain some HTML markup and inline Component links (sometimes to multimedia Components - PDFs, images etc.). To satisfy the requirements I need to maintain these links in the RSS feed. Upon publishing I can see tags with tridion:href
which are then resolved on the presentation side to regular links.
How do I parse/escape these links or any HTML content to make it XML compliant (replace <
& >
with <
& >
and similar)?
I am using SDL Tridion 2011 SP1 and Java on the presentation side.