cakephp / twig-view

Twig View for CakePHP
MIT License
13 stars 7 forks source link

Don't HTML escape output of "nl2br" filter. #16

Closed ADmad closed 4 years ago

ADmad commented 4 years ago

Output of that filter is meant to contain HTML tag.

ADmad commented 4 years ago

There's also a pre_escape option which can be used to escape the input. Using it would mean the output would only contain <br> tags, any other tags will be escaped, which seems reasonable to me.