Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions html_sanitizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ attributes from the `W3C Standard Proposal`_ are allowed.
img: 'src'
# allow the <h1> element with all safe attributes
h1: '*'
# allow the <div> element with no attributes
div: []
Comment on lines +321 to +322
Copy link
Contributor

@alamirault alamirault May 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update xml, php and php-standelone following code blocks to have this example ?

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to help, but I have no idea how to test XML config files. I get nothing but DTD errors.


.. code-block:: xml

Expand Down