diff --git a/lib/utils/em.dart b/lib/utils/em.dart index 68eed977..8dba2c13 100644 --- a/lib/utils/em.dart +++ b/lib/utils/em.dart @@ -19,6 +19,10 @@ class Em { return regCate(matchStr); }, onNonMatch: (String str) { if (str != '') { + str = str + .replaceAll('>', '>') + .replaceAll('"', '"') + .replaceAll(''', "'"); Map map = {'type': 'text', 'text': str}; res.add(map); }