Newbie: How to convert "<" to "<" ( encoding? )
Aahz Maruch
aahz at panix.com
Tue Oct 3 19:28:51 EDT 2000
In article <nfsC5.23$fn2.51625 at news.pacbell.net>,
Eric <ewalstad at yahoo.com> wrote:
>
>The subject says it all. I'm sure there's a Python function that will
>convert:
>"<" to "<"
>">" to ">"
Actually, it appears that there is in fact no HTMLescape() function.
Should be fairly straightforward to use htmlentitydefs to solve this
problem, but I agree that it ought to be built into htmllib. I'll check
into this on python-dev. Do you need help writing code that uses
htmlentitydefs?
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
There's a difference between a person who gets shit zie doesn't
deserve and a person who gets more shit than zie deserves. --Aahz
More information about the Python-list
mailing list