You are not logged in Log in Join
You are here: Home » Members » Folder for ats » COREBlog - Zope Weblog Product » Bug Tracker for COREBlog » Attributes are not properly quoted » quoteattr.patch

Log in
Name

Password

 

quoteattr.patch

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&amp;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
Size
1 K
File type
application/octet-stream