feat: add mj image list component for mobile page. fixed bug for html tag escape

This commit is contained in:
RockYang
2024-02-15 11:39:04 +08:00
parent 013b319fab
commit 0af01f6f1f
13 changed files with 479 additions and 21 deletions

View File

@@ -197,3 +197,9 @@ export function processContent(content) {
return lines.join("\n")
}
export function escapeHTML(html) {
return html.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
}