Ynt: html filtering

Serdar Soydemir serdars at ixir.com
Mon Dec 25 15:44:34 EST 2000


Hello,

Using translate method and maketrans method in string module may be a good
idea. I didn't try them but they seem more practical than replace..


----- Original Message -----
From: QdlatY <qdlaty at wielun.dhs.org>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Monday, December 25, 2000 2:08 AM
Subject: html filtering


> Hello!
>
> Big problem in writeing message boards is filtering html tags. I use
> very simple method: Each occurence of "<" sign or ">" sign I replace
> with < and >. Is this safe method? Maybe You've got better ideas?
>
> Yours
> QdlatY
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list