html filtering

Moshe Zadka moshez at zadka.site.co.il
Mon Dec 25 16:04:07 CET 2000


On Mon, 25 Dec 2000, QdlatY <qdlaty at wielun.dhs.org> 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 zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!




More information about the Python-list mailing list