Skip to content

Commit 627e1a0

Browse files
committed
Use a better escaping mechanism for data-prototype attr
1 parent 90a2922 commit 627e1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ new "tag" forms. To render it, make the following change to your template:
304304

305305
.. code-block:: html+twig
306306

307-
<ul class="tags" data-prototype="{{ form_widget(form.tags.vars.prototype)|e }}">
307+
<ul class="tags" data-prototype="{{ form_widget(form.tags.vars.prototype)|e('html_attr') }}">
308308
...
309309
</ul>
310310

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy