summaryrefslogtreecommitdiff
path: root/sphinx/htmlhelp.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-10-16 19:48:35 +0000
committerGeorg Brandl <georg@python.org>2008-10-16 19:48:35 +0000
commite4306e5f87835e5308313853e610b811dfd1869b (patch)
treee1be231902e88ac51e9291c4be04884a69a43c0f /sphinx/htmlhelp.py
parent7e1311e8cf53ae14e1f7220553dc0af1bb2a3e7f (diff)
downloadsphinx-git-e4306e5f87835e5308313853e610b811dfd1869b.tar.gz
Escape " to &quot; in HTML help attribute values. #25.
Diffstat (limited to 'sphinx/htmlhelp.py')
-rw-r--r--sphinx/htmlhelp.py3
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('"','&quot;')
+ item = object_sitemap % (title, link)
f.write(item.encode('ascii', 'xmlcharrefreplace'))
elif isinstance(node, nodes.bullet_list):
if ullevel != 0: