Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

解决重复转义的bug

  • Loading branch information...
commit 37a8733d13ec50a7551be746631fd955ea29ccb4 1 parent af31bfc
whtsky authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  common.py
View
1  common.py
@@ -114,6 +114,7 @@ def md_convert(txt,notice=False,time=None,user=None,db=None,postid=None):
txt = txt.replace(emoji,u'<img src="/static/img/%s" class="emoji" />' % emojis[emoji])
txt = md.convert(txt).replace('\n','<br />')
+ txt = txt.replace('&amp;lt;','&lt;').replace('&amp;gt;','&gt;')
if notice:
for u in mentions:
Please sign in to comment.
Something went wrong with that request. Please try again.