Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HtmlSanitizer] Fix wrong method name #16838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2022
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
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