]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Fix bug reported on user list: <title> not escaped.
[features.git] / src / Buffer.cpp
index 504bacdb9a4e1eee96d77f6463baafe2ab0e3578..625c0fffee7468348712522b9ab101922d7d80a9 100644 (file)
@@ -1714,7 +1714,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"