mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 19:53:50 +08:00
feat: add mj image list component for mobile page. fixed bug for html tag escape
This commit is contained in:
@@ -197,3 +197,9 @@ export function processContent(content) {
|
||||
return lines.join("\n")
|
||||
}
|
||||
|
||||
export function escapeHTML(html) {
|
||||
return html.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user