Fix bug
This commit is contained in:
parent
f768a20b97
commit
0eaffafc73
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ class ProblemFeed(Feed):
|
|||
key = "problem_feed:%d" % problem.id
|
||||
desc = cache.get(key)
|
||||
if desc is None:
|
||||
desc = str(markdown(problem.description, "problem"))[:500] + "..."
|
||||
desc = str(markdown(problem.description))[:500] + "..."
|
||||
desc = escape_xml_illegal_chars(desc)
|
||||
cache.set(key, desc, 86400)
|
||||
return desc
|
||||
|
|
|
@ -49,7 +49,7 @@ ALLOWED_TAGS = bleach.sanitizer.ALLOWED_TAGS + [
|
|||
"dd",
|
||||
"br",
|
||||
"details",
|
||||
"summary"
|
||||
"summary",
|
||||
]
|
||||
|
||||
ALLOWED_ATTRS = ["src", "width", "height", "href", "class", "open"]
|
||||
|
|
Loading…
Reference in a new issue