From 7f7154bba47ad3b27374779c5995d9dc8ac9b5d6 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Wed, 20 Dec 2023 00:18:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=86=E9=A2=91=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E8=BD=AC=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/em.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/utils/em.dart b/lib/utils/em.dart index 8dba2c13..733f5c35 100644 --- a/lib/utils/em.dart +++ b/lib/utils/em.dart @@ -20,9 +20,14 @@ class Em { }, onNonMatch: (String str) { if (str != '') { str = str + .replaceAll('<', '<') .replaceAll('>', '>') .replaceAll('"', '"') - .replaceAll(''', "'"); + .replaceAll(''', "'") + .replaceAll('"', '"') + .replaceAll(''', "'") + .replaceAll(' ', " ") + .replaceAll('&', "&"); Map map = {'type': 'text', 'text': str}; res.add(map); }