> >> I think for some of my RSS feeds I use CDATA, so _my_ rssFormatter()
> >> script looks something like this::
> >>
> >> return "<![CDATA[%s]]>" % text
> >>
> >> The advantage with CDATA is that you won't need to html quote things.
> 
> 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.
> 

I'm assuming this would work::

 return "<![CDATA[%s]]>" % text.replace('[[>','\[\[\>')

> Florent
> 
> --
> Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
> +33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to