Fix a bunch of hardcoded borders + autofmt

This commit is contained in:
ItsLemmy
2025-11-18 19:17:25 -05:00
parent aa218e153d
commit 8242b0d97d
11 changed files with 14 additions and 20 deletions
+2 -7
View File
@@ -250,15 +250,10 @@ Item {
const htmlRegex = /<\/?[a-zA-Z][\s\S]*>/;
if (htmlRegex.test(str)) {
return str;
return str;
}
const escaped = str
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#39;");
const escaped = str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
const withBreaks = escaped.replace(/\r\n|\r|\n/g, "<br/>");