[Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-15 Thread Simon Michael
Chris, you are hurting my ears, please stop. :) ___ 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

[Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Florent Guillaume
Jonathan Cyr wrote: That's the ticket. You're right the CDATA solution is much better than html-quote'ing everything. Many thanks, -Jon Peter Bengtsson wrote: Create a python script called rssFormatter(text):: from Products.PythonScripts.standard import structured_text, html_quote return

Re: [Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Peter Bengtsson
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

Re: [Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
A ha... thanks for the tip. -Jon Florent Guillaume wrote: Jonathan Cyr wrote: That's the ticket. You're right the CDATA solution is much better than html-quote'ing everything. Many thanks, -Jon Peter Bengtsson wrote: Create a python script