Skip to content

Commit c2cf943

Browse files
authored
Example of allowed element with attributes disallowed
1 parent c59af97 commit c2cf943

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
@@ -314,6 +314,8 @@ attributes from the `W3C Standard Proposal`_ are allowed.
314314
img: 'src'
315315
# allow the <h1> element with all safe attributes
316316
h1: '*'
317+
# allow the <div> element with no attributes
318+
div: []
317319
318320
.. code-block:: xml
319321

0 commit comments

Comments
 (0)