Max M wrote:
If it's not to learn, and you simply want it to work, try out this library:
http://zope.org/Members/chrisw/StripOGram/readme
>>> stripogram.html2safehtml('''first > last''',valid_tags=('i','a','br')) 'first > last' >>> stripogram.html2safehtml('''first < last''',valid_tags=('i','a','br')) 'first first '
keeping in mind that bare ">" and "<" are invalid HTML (should be > and <), why'd it leave the greater than and why are there two "first"'s ?
--
http://mail.python.org/mailman/listinfo/python-list