From 435b82c33aa694d49b4b6fe8eba3b51978fd195a Mon Sep 17 00:00:00 2001 From: Hopetree Date: Wed, 4 Dec 2019 21:18:48 +0800 Subject: [PATCH] fix comment --- apps/comment/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/comment/models.py b/apps/comment/models.py index 0faa1af79..334456e13 100644 --- a/apps/comment/models.py +++ b/apps/comment/models.py @@ -46,7 +46,10 @@ def get_emoji_imgs(body): body = re.sub(':{}:'.format(ii[0]), emoji_url, body) tag_info = { '': '', - '': '
' + '': '
', + '': '', + '': '', + '': '' } for k, v in tag_info.items(): body = re.sub(k, v, body)