html filtering

Moshe Zadka moshez at
Mon Dec 25 16:04:07 CET 2000

On Mon, 25 Dec 2000, QdlatY <qdlaty at> wrote:

> 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?

Well, it is safe as long as you remember to replace every "&" with
"&" *before* you replace < and >.

Moshe Zadka <sig at>
This is a signature anti-virus. 
Please stop the spread of signature viruses!

More information about the Python-list mailing list