Fix bug reported on user list: <title> not escaped.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40132 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-02 18:57:14 +00:00
parent 1f05c19a2f
commit f78ada8345
2 changed files with 5 additions and 1 deletions

View File

@ -1657,7 +1657,9 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
docstring const & doctitle = features.htmlTitle();
os << "<title>"
<< (doctitle.empty() ? from_ascii("LyX Document") : doctitle)
<< (doctitle.empty() ?
from_ascii("LyX Document") :
html::htmlize(doctitle, XHTMLStream::ESCAPE_ALL))
<< "</title>\n";
os << "\n<!-- Text Class Preamble -->\n"

View File

@ -162,6 +162,8 @@ What's new
- Fix latex export of multilingual documents containing theorem-like
environments (bug 7800).
- Escape ampersands in <title> when outputting XHTML.
* USER INTERFACE