Skip to content

Commit 2c03f2d

Browse files
committed
minor #16838 [HtmlSanitizer] Fix wrong method name (norkunas)
This PR was merged into the 6.1 branch. Discussion ---------- [HtmlSanitizer] Fix wrong method name Ref symfony/symfony#46538 Commits ------- c78c78f [HtmlSanitizer] Fix wrong method name
2 parents be6e9d4 + c78c78f commit 2c03f2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

html_sanitizer.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Safe elements
242242
app.post_sanitizer:
243243
# enable either of these
244244
allow_safe_elements: true
245-
allow_all_static_elements: true
245+
allow_static_elements: true
246246
247247
.. code-block:: xml
248248
@@ -257,12 +257,12 @@ Safe elements
257257
258258
<framework:config>
259259
<framework:html-sanitizer>
260-
<!-- allow-safe-elements/allow-all-static-elements:
260+
<!-- allow-safe-elements/allow-static-elements:
261261
enable either of these -->
262262
<framework:sanitizer
263263
name="app.post_sanitizer"
264264
allow-safe-elements="true"
265-
allow-all-static-elements="true"
265+
allow-static-elements="true"
266266
/>
267267
</framework:html-sanitizer>
268268
</framework:config>
@@ -278,7 +278,7 @@ Safe elements
278278
->sanitizer('app.post_sanitizer')
279279
// enable either of these
280280
->allowSafeElements(true)
281-
->allowAllStaticElements(true)
281+
->allowStaticElements(true)
282282
;
283283
};
284284
@@ -291,7 +291,7 @@ Safe elements
291291
(new HtmlSanitizerConfig())
292292
// enable either of these
293293
->allowSafeElements()
294-
->allowAllStaticElements()
294+
->allowStaticElements()
295295
);
296296
297297
Allow Elements
@@ -332,7 +332,7 @@ attributes from the `W3C Standard Proposal`_ are allowed.
332332
333333
<framework:config>
334334
<framework:html-sanitizer>
335-
<!-- allow-safe-elements/allow-all-static-elements:
335+
<!-- allow-safe-elements/allow-static-elements:
336336
enable either of these -->
337337
<framework:sanitizer name="app.post_sanitizer">
338338
<!-- allow the <article> element and 2 attributes -->

0 commit comments

Comments
 (0)