Use xml escape before writing classes to the docs file.

This commit is contained in:
Relintai 2024-01-06 19:45:38 +01:00
parent ee75ac99a5
commit 46de03632e

View File

@ -68,7 +68,7 @@ String generate_section_class_list(const List<String> &list, const String &cls_p
continue; continue;
} }
d += code_template.replace("$CODE$", c).replace("$NAME$", sname); d += code_template.replace("$CODE$", c.xml_escape(true)).replace("$NAME$", sname);
} }
return d; return d;
@ -530,7 +530,7 @@ void process_file(const String &path) {
String class_str = class_index[c]; String class_str = class_index[c];
//String class_name = get_structure_name(class_str); //String class_name = get_structure_name(class_str);
index_str = index_str.replace(keyword, code_template.replace("$CODE$", class_str)); index_str = index_str.replace(keyword, code_template.replace("$CODE$", class_str.xml_escape(true)));
used_keywords.insert(c); used_keywords.insert(c);
} }