This commit is contained in:
cuom1999 2022-10-26 01:11:37 -05:00
parent f768a20b97
commit 0eaffafc73
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -49,7 +49,7 @@ ALLOWED_TAGS = bleach.sanitizer.ALLOWED_TAGS + [
"dd",
"br",
"details",
"summary"
"summary",
]
ALLOWED_ATTRS = ["src", "width", "height", "href", "class", "open"]