Html_cleaner no longer converts ":" to ":".
This commit is contained in:
parent
1ecad1a00c
commit
2b307b6690
|
@ -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(':',':')
|
||||
return escape(text, quote=True)
|
||||
|
||||
class Html_cleaner(HTMLParser):
|
||||
"""
|
||||
|
|
Reference in New Issue