diff --git a/html_sanitizer.rst b/html_sanitizer.rst
index ab7ba7bc875..55d80d65d90 100644
--- a/html_sanitizer.rst
+++ b/html_sanitizer.rst
@@ -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
@@ -257,12 +257,12 @@ Safe elements
-
@@ -278,7 +278,7 @@ Safe elements
->sanitizer('app.post_sanitizer')
// enable either of these
->allowSafeElements(true)
- ->allowAllStaticElements(true)
+ ->allowStaticElements(true)
;
};
@@ -291,7 +291,7 @@ Safe elements
(new HtmlSanitizerConfig())
// enable either of these
->allowSafeElements()
- ->allowAllStaticElements()
+ ->allowStaticElements()
);
Allow Elements
@@ -332,7 +332,7 @@ attributes from the `W3C Standard Proposal`_ are allowed.
-