2009/3/4 Eric Dorsey <[email protected]>:
> d = feedparser.parse('http://snipt.net/dorseye/feed')
>
> x=0
> for i in d['entries']:
> print d['entries'][x].title
> print d['entries'][x].summary
> print
> x+=1
>
> Output
>
> Explode / Implode List
> >>> V = list(V)
<snip>
> I know, for example, that the > code means >, but what I don't know is
> how to convert it in all my data to show properly? In all the feedparser
<snip>
What you are looking for is unescape from saxutils. Example:
>>> from xml.sax.saxutils import unescape
>>> unescape('>')
'>'
Greets
Sander
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor