Skip to content

Commit

Permalink
Bleach on course content: allow thead, tbody, summary, details
Browse files Browse the repository at this point in the history
Closes gh-824
  • Loading branch information
inducer committed Nov 12, 2024
1 parent 214a040 commit 273e6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ def markup_to_html(
tags=[*bleach.ALLOWED_TAGS, "div", "span", "p", "img",
"h1", "h2", "h3", "h4", "h5", "h6",
"table", "td", "tr", "th",
"pre"],
"pre", "details", "summary", "thead", "tbody"],
attributes=filter_html_attributes)

result = f"<div class='relate-markup'>{result}</div>"
Expand Down

0 comments on commit 273e6c6

Please sign in to comment.