You are here

public function TwigTestExtension::escape_and_nl2br in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \TwigTestExtension::escape_and_nl2br()

nl2br which also escapes, for testing escaper filters.

File

vendor/twig/twig/test/Twig/Tests/IntegrationTest.php, line 180

Class

TwigTestExtension

Code

public function escape_and_nl2br($env, $value, $sep = '<br />') {
  return $this
    ->nl2br(twig_escape_filter($env, $value, 'html'), $sep);
}