mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Use xml escape before writing classes to the docs file.
This commit is contained in:
parent
ee75ac99a5
commit
46de03632e
@ -68,7 +68,7 @@ String generate_section_class_list(const List<String> &list, const String &cls_p
|
||||
continue;
|
||||
}
|
||||
|
||||
d += code_template.replace("$CODE$", c).replace("$NAME$", sname);
|
||||
d += code_template.replace("$CODE$", c.xml_escape(true)).replace("$NAME$", sname);
|
||||
}
|
||||
|
||||
return d;
|
||||
@ -530,7 +530,7 @@ void process_file(const String &path) {
|
||||
String class_str = class_index[c];
|
||||
//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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user