Newbie: How to convert "<" to "&lt;" ( encoding? )

Aahz Maruch aahz at panix.com
Tue Oct 3 23:03:19 EDT 2000


In article <zLvC5.79198$F9.1550890 at news.corecomm.net>, lynx  <a at b.c> wrote:
>aahz at panix.com (Aahz Maruch), in <8rdq3j$qm0$1 at panix6.panix.com>:
>>
>> Actually, it appears that there is in fact no HTMLescape() function.
>
>what about cgi.escape() ?

Ah, there it is.  Okay, I wasn't familiar with the cgi module.  Thanks!
There probably should still be a generic char-to-entity routine based on
the htmlentitydefs module, but that's lower priority.
-- 
                      --- 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