Skip to content

Commit 073bf78

Browse files
committed
minor #21026 [HtmlSanitizer] Example of allowed element with attributes disallowed (miqrogroove)
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead. Discussion ---------- [HtmlSanitizer] Example of allowed element with attributes disallowed Commits ------- ad18b26 Example of allowed element with attributes disallowed
2 parents e060e98 + ad18b26 commit 073bf78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html_sanitizer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ attributes from the `W3C Standard Proposal`_ are allowed.
318318
img: 'src'
319319
# allow the <h1> element with all safe attributes
320320
h1: '*'
321+
# allow the <div> element with no attributes
322+
div: []
321323
322324
.. code-block:: xml
323325

0 commit comments

Comments
 (0)