fix(web): fix wrong string escaping when rendering quote blocks

This commit is contained in:
2025-03-07 02:56:13 +03:00
parent 253e4def43
commit dc2bae0da6
+4 -4
View File
@@ -26,10 +26,10 @@ function datetimeToLocalISO(datetime) {
function escapedString(str) {
return str
.replace("&", "&")
.replace("<", "&lt;")
.replace(">", "&gt;")
.replace("\n", "<br>");
.replaceAll("&", "&amp;")
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll("\n", "<br>");
}
function formToJSON(form) {