Skip to content

Commit

Permalink
Merge pull request Hopetree#102 from Hopetree/develop
Browse files Browse the repository at this point in the history
fix comment
  • Loading branch information
Hopetree authored Dec 4, 2019
2 parents 66eb03f + 435b82c commit 1b4ccc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/comment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def get_emoji_imgs(body):
body = re.sub(':{}:'.format(ii[0]), emoji_url, body)
tag_info = {
'<h\d>': '',
'</h\d>': '<br>'
'</h\d>': '<br>',
'<script.*</script>': '',
'<meta.*?>': '',
'<link.*?>': ''
}
for k, v in tag_info.items():
body = re.sub(k, v, body)
Expand Down

0 comments on commit 1b4ccc4

Please sign in to comment.