From: Richard Heck Date: Sat, 2 Apr 2011 23:35:57 +0000 (+0000) Subject: Hyperlinks have to be escaped for XHTML output. X-Git-Tag: 2.0.0~270 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=20487d93a6b5cb4de1b07afb925ce3965497f8ee;p=features.git 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 --- diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index b6ccdd54fb..e87103ac13 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -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);