witten
/
luminotes
Archived
1
0
Fork 0

Html_cleaner no longer converts ":" to ":".

This commit is contained in:
Dan Helfman 2007-07-19 19:23:59 +00:00
parent 1ecad1a00c
commit 2b307b6690
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ from xml.sax.saxutils import quoteattr
def xssescape(text):
"""Gets rid of < and > and & and, for good measure, :"""
return escape(text, quote=True).replace(':','&#58;')
return escape(text, quote=True)
class Html_cleaner(HTMLParser):
"""