diff options
author | Georg Brandl <georg@python.org> | 2008-10-16 19:48:35 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-10-16 19:48:35 +0000 |
commit | e4306e5f87835e5308313853e610b811dfd1869b (patch) | |
tree | e1be231902e88ac51e9291c4be04884a69a43c0f /sphinx/htmlhelp.py | |
parent | 7e1311e8cf53ae14e1f7220553dc0af1bb2a3e7f (diff) | |
download | sphinx-git-e4306e5f87835e5308313853e610b811dfd1869b.tar.gz |
Escape " to " in HTML help attribute values. #25.
Diffstat (limited to 'sphinx/htmlhelp.py')
-rw-r--r-- | sphinx/htmlhelp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/htmlhelp.py b/sphinx/htmlhelp.py index ea21d0ce1..33dbd9ff5 100644 --- a/sphinx/htmlhelp.py +++ b/sphinx/htmlhelp.py @@ -164,7 +164,8 @@ def build_hhx(builder, outdir, outname): write_toc(subnode, ullevel) elif isinstance(node, nodes.reference): link = node['refuri'] - item = object_sitemap % (cgi.escape(node.astext()), link) + title = cgi.escape(node.astext()).replace('"','"') + item = object_sitemap % (title, link) f.write(item.encode('ascii', 'xmlcharrefreplace')) elif isinstance(node, nodes.bullet_list): if ullevel != 0: |