fix: 搜索视频标题显示乱码 issues #165

This commit is contained in:
guozhigq
2023-09-27 23:38:00 +08:00
parent 8fa59f8f58
commit 2fd23aa20d

View File

@ -19,6 +19,10 @@ class Em {
return regCate(matchStr); return regCate(matchStr);
}, onNonMatch: (String str) { }, onNonMatch: (String str) {
if (str != '') { if (str != '') {
str = str
.replaceAll('>', '>')
.replaceAll('"', '"')
.replaceAll(''', "'");
Map map = {'type': 'text', 'text': str}; Map map = {'type': 'text', 'text': str};
res.add(map); res.add(map);
} }