|
HTML requires ampersands in attributes to be quoted.
<a href="http://www.google.com/search?q=test&start=0">
does not validate, but
<a href="http://www.google.com/search?q=test&start=0">
does.
A patch for stripogram/html2safehtml.py is attached.
It requires xml.sax.saxutils, but it would be easy to move the quoteattr function into stripogram if you want to strip this dependency.
File details
File type
application/octet-stream
|