Skip to content

Commit

Permalink
Merge branch '6.1' into 6.2
Browse files Browse the repository at this point in the history
* 6.1:
  [HtmlSanitizer] Fix wrong method name
  • Loading branch information
javiereguiluz committed Jun 2, 2022
2 parents e62f3d1 + 2c03f2d commit e2bd729
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions html_sanitizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Safe elements
app.post_sanitizer:
# enable either of these
allow_safe_elements: true
allow_all_static_elements: true
allow_static_elements: true
.. code-block:: xml
Expand All @@ -257,12 +257,12 @@ Safe elements
<framework:config>
<framework:html-sanitizer>
<!-- allow-safe-elements/allow-all-static-elements:
<!-- allow-safe-elements/allow-static-elements:
enable either of these -->
<framework:sanitizer
name="app.post_sanitizer"
allow-safe-elements="true"
allow-all-static-elements="true"
allow-static-elements="true"
/>
</framework:html-sanitizer>
</framework:config>
Expand All @@ -278,7 +278,7 @@ Safe elements
->sanitizer('app.post_sanitizer')
// enable either of these
->allowSafeElements(true)
->allowAllStaticElements(true)
->allowStaticElements(true)
;
};
Expand All @@ -291,7 +291,7 @@ Safe elements
(new HtmlSanitizerConfig())
// enable either of these
->allowSafeElements()
->allowAllStaticElements()
->allowStaticElements()
);
Allow Elements
Expand Down Expand Up @@ -332,7 +332,7 @@ attributes from the `W3C Standard Proposal`_ are allowed.
<framework:config>
<framework:html-sanitizer>
<!-- allow-safe-elements/allow-all-static-elements:
<!-- allow-safe-elements/allow-static-elements:
enable either of these -->
<framework:sanitizer name="app.post_sanitizer">
<!-- allow the <article> element and 2 attributes -->
Expand Down

0 comments on commit e2bd729

Please sign in to comment.