ninsuo
2013-07-13 16:12:39 UTC
Hello there,
By reading the Twig's doc :
http://twig.sensiolabs.org/doc/filters/nl2br.html
I seen the note :
"The nl2br filter pre-escapes the input before applying the transformation."
But, if I try the following:
{{ "<b>I like apples\nBut I prefer bananas</b>" | nl2br }}
I see my string bolded (unescaped)
Can somebody explain what Twig call "pre-escapes" in this note?
Thanks,
Alain
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
By reading the Twig's doc :
http://twig.sensiolabs.org/doc/filters/nl2br.html
I seen the note :
"The nl2br filter pre-escapes the input before applying the transformation."
But, if I try the following:
{{ "<b>I like apples\nBut I prefer bananas</b>" | nl2br }}
I see my string bolded (unescaped)
Can somebody explain what Twig call "pre-escapes" in this note?
Thanks,
Alain
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.