Skip to content

Commit

Permalink
Don't make Twig filters safe for HTML by default
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 5, 2018
1 parent d49200d commit 3b48d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/skeleton/twig/Extension.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class <?= $class_name ?> extends AbstractExtension
public function getFilters(): array
{
return [
new TwigFilter('filter_name', [$this, 'doSomething'], ['is_safe' => ['html']]),
new TwigFilter('filter_name', [$this, 'doSomething']),
];
}

Expand Down

0 comments on commit 3b48d7a

Please sign in to comment.