HTML filtering

Serdar Soydemir serdars at
Mon Dec 25 16:15:26 EST 2000


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


QdlatY <qdlaty at> wrote in message
news:3A46900D.BD118A0A at
> 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
> --

More information about the Python-list mailing list