]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
changelogs
[lyx.git] / src / insets / insetindex.C
index fa27b2440b5076d7bf40a13efa82e3e22aaf35c7..2cbee02a34398915fd25780bab46be2344be565c 100644 (file)
@@ -16,6 +16,7 @@
 #include "gettext.h"
 #include "LaTeXFeatures.h"
 #include "metricsinfo.h"
+#include "sgml.h"
 
 #include "support/std_ostream.h"
 
@@ -42,7 +43,7 @@ string const InsetIndex::getScreenLabel(Buffer const &) const
 int InsetIndex::docbook(Buffer const &, ostream & os,
                        OutputParams const &) const
 {
-       os << "<indexterm><primary>" << getContents()
+       os << "<indexterm><primary>" << sgml::escapeString(getContents())
           << "</primary></indexterm>";
        return 0;
 }