Hyperlinks have to be escaped for XHTML output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38215 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-04-02 23:35:57 +00:00
parent 348a6cff8d
commit 20487d93a6

View File

@ -225,7 +225,8 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
{
docstring const & target = getParam("target");
docstring const & target =
html::htmlize(getParam("target"), XHTMLStream::ESCAPE_AND);
docstring const & name = getParam("name");
xs << html::StartTag("a", to_utf8("href=\"" + target + "\""));
xs << (name.empty() ? target : name);