fix: 视频搜索标题转义

This commit is contained in:
guozhigq
2023-12-20 00:18:31 +08:00
parent ed91c55b9d
commit 7f7154bba4

View File

@ -20,9 +20,14 @@ class Em {
}, onNonMatch: (String str) {
if (str != '') {
str = str
.replaceAll('&lt;', '<')
.replaceAll('&gt;', '>')
.replaceAll('&#34;', '"')
.replaceAll('&#39;', "'");
.replaceAll('&#39;', "'")
.replaceAll('&quot;', '"')
.replaceAll('&apos;', "'")
.replaceAll('&nbsp;', " ")
.replaceAll('&amp;', "&");
Map map = {'type': 'text', 'text': str};
res.add(map);
}