Skip to content

Commit dfe6661

Browse files
committed
minor #222 Don't make Twig filters safe for HTML by default (javiereguiluz)
This PR was merged into the 1.0-dev branch. Discussion ---------- Don't make Twig filters safe for HTML by default This fixes #200. I disagree with this change ... but I guess most people will agree with it ... so let's do it. Commits ------- 3b48d7a Don't make Twig filters safe for HTML by default
2 parents 432caaa + 3b48d7a commit dfe6661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/twig/Extension.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class <?= $class_name ?> extends AbstractExtension
1111
public function getFilters(): array
1212
{
1313
return [
14-
new TwigFilter('filter_name', [$this, 'doSomething'], ['is_safe' => ['html']]),
14+
new TwigFilter('filter_name', [$this, 'doSomething']),
1515
];
1616
}
1717

0 commit comments

Comments
 (0)