InsetIndex: enable escaping for terms in the index

The previous code explicitly disabled it and this behaviour caused problems (like "A&A" being output as-is, which is wrong in HTML: it should be "A&A").
This commit is contained in:
Thibaut Cuvelier 2022-11-20 00:19:53 +01:00
parent e9f21f2e83
commit 77f0fbdc9a

View File

@ -1730,7 +1730,7 @@ void outputIndexPage(XMLStream & xs, const IndexNode* root_node, unsigned depth
xs << xml::StartTag("li", "class='" + generateCssClassAtDepth(depth) + "'");
xs << xml::CR();
xs << XMLStream::ESCAPE_NONE << termAtLevel(root_node, depth);
xs << termAtLevel(root_node, depth);
// By tree assumption, all the entries at this node have the same set of terms.
if (!root_node->entries.empty()) {