Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig filter line break

{{ "I like Twig.
You will like it too."|nl2br }}
{# outputs

    I like Twig.<br />
    You will like it too.

#}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #filter #line #break
ADD COMMENT
Topic
Name
2+7 =