Skip to content

Commit ad18b26

Browse files
miqrogroovejaviereguiluz
authored andcommitted
Example of allowed element with attributes disallowed
1 parent e060e98 commit ad18b26

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)