Space substitution is taken into account when converting to html

This commit is contained in:
lsv 2026-06-11 09:45:41 +05:00
parent 705cddaa46
commit 05971a6c5a

View file

@ -89,6 +89,7 @@ wxString escapeHtml(wxString text, bool pre) {
text.Replace("&", "&");
text.Replace("<", "&lt;");
text.Replace(">", "&gt;");
text.Replace(" ", "&nbsp;");
if (!pre) text.Replace("\n", "<br>");
return text;
}