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

This commit is contained in:
Masahiko AMANO 2025-03-07 02:56:13 +03:00
parent 253e4def43
commit dc2bae0da6

View File

@ -26,10 +26,10 @@ function datetimeToLocalISO(datetime) {
function escapedString(str) { function escapedString(str) {
return str return str
.replace("&", "&") .replaceAll("&", "&")
.replace("<", "&lt;") .replaceAll("<", "&lt;")
.replace(">", "&gt;") .replaceAll(">", "&gt;")
.replace("\n", "<br>"); .replaceAll("\n", "<br>");
} }
function formToJSON(form) { function formToJSON(form) {