Commit 41d19a36 by 张权

大于小于号转义问题

1 parent 8409f4cd
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
} else if (videoLabelReg.test(item)) { } else if (videoLabelReg.test(item)) {
if (item.match(videoLinkReg)) return item.match(videoLinkReg)[0] if (item.match(videoLinkReg)) return item.match(videoLinkReg)[0]
} else if (item && item.length > 2 && item != '><') { } else if (item && item.length > 2 && item != '><') {
return item.slice(1, -1) return item.slice(1, -1) ? item.slice(1, -1).replaceAll('&amp;','&').replaceAll('&gt;','>').replaceAll('&lt;','<') : ''
} }
}) })
arr = arr.filter(item => item) arr = arr.filter(item => item)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!