This is an automated email from the ASF dual-hosted git repository. brondsem pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit e76f449c4a1b41797a209b45b850eb3a2cb632c6 Author: Dillon Walls <[email protected]> AuthorDate: Thu Jul 1 01:18:18 2021 +0000 allow <summary> html tags in comments/content --- Allura/allura/lib/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py index dca2d3b..3f566a3 100644 --- a/Allura/allura/lib/utils.py +++ b/Allura/allura/lib/utils.py @@ -560,7 +560,10 @@ class ForgeHTMLSanitizerFilter(html5lib.filters.sanitizer.Filter): (ns_html, 'select'), (ns_html, 'textarea'), } - self.allowed_elements = set(html5lib.filters.sanitizer.allowed_elements) - _form_elements + _extra_allowed_elements = set([ + (ns_html, 'summary'), + ]) + self.allowed_elements = (set(html5lib.filters.sanitizer.allowed_elements) | _extra_allowed_elements) - _form_elements # srcset is used in our own project_list/project_summary widgets # which are used as macros so go through markdown
