mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
348a6cff8d
commit
20487d93a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user