Closed duoduo369 closed 8 years ago
When html parse feed a non-standard tag, parse will raise error.
parser.feed('''<p><img src onerror="alert('xss1')"/></p>''') /root/projects/python-xss-filter/pxfilter.py in _htmlspecialchars(self, html) 184 185 def _htmlspecialchars(self, html): --> 186 return html.replace("<", "<")\ 187 .replace(">", ">")\ 188 .replace('"', """)\
after fix, it will be:
'<p><img src="" /></p>'
When html parse feed a non-standard tag, parse will raise error.
after fix, it will be: