<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Verdana">A ha... thanks for the tip.<br>
<br>
-Jon<br>
</font></font><br>
Florent Guillaume wrote:
<blockquote cite="mid43216E7C.3090402@nuxeo.com" type="cite">Jonathan
Cyr wrote:
<br>
<blockquote type="cite">That's the ticket. You're right the CDATA
solution is much better than html-quote'ing everything.
<br>
<br>
Many thanks,
<br>
<br>
-Jon
<br>
<br>
Peter Bengtsson wrote:
<br>
<br>
<blockquote type="cite">Create a python script called
rssFormatter(text)::
<br>
<br>
from Products.PythonScripts.standard import structured_text, html_quote
<br>
return html_quote(structured_text(text))
<br>
<br>
Which you use later as <dtml-var "rssFormatter(summary)">
<br>
<br>
I think for some of my RSS feeds I use CDATA, so _my_ rssFormatter()
<br>
script looks something like this::
<br>
<br>
return "<![CDATA[%s]]>" % text
<br>
<br>
The advantage with CDATA is that you won't need to html quote things.
<br>
</blockquote>
</blockquote>
<br>
Which is not really true, you still have to find a way to deal with
your string if it contains ']]>' which is the end marker for CDATA.
<br>
<br>
Florent
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jonathan Cyr
<a class="moz-txt-link-abbreviated" href="mailto:cyrj@cyr.info">cyrj@cyr.info</a></pre>
</body>
</html>