]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
Prettify the tooltip for footnotes.
[lyx.git] / src / insets / InsetCitation.cpp
index b21ae6ae39c9855b14d5da76015d4a804e9f5f56..c0e61798a8fecda40ed999b9d0091ff0020f4841 100644 (file)
@@ -221,7 +221,7 @@ inline docstring wrapCitation(docstring const & key,
                return content;
        // we have to do the escaping here, because we will ultimately
        // write this as a raw string, so as not to escape the tags.
-       return "<a href='#LyXCite-" + key + "'>" +
+       return "<a href='#LyXCite-" + html::cleanAttr(key) + "'>" +
                        html::htmlize(content, XHTMLStream::ESCAPE_ALL) + "</a>";
 }