Allow HTML

This commit is contained in:
Oliver Davies 2016-04-13 09:39:00 +01:00
parent 4eaecb9421
commit 4174948cc5
5 changed files with 7 additions and 5 deletions

View file

@ -13,7 +13,9 @@ class YouTubeExtension extends Twig_Extension
public function getFunctions()
{
return [
new Twig_SimpleFunction('youtube', [$this, 'embedCode'])
new Twig_SimpleFunction('youtube', [$this, 'embedCode'], [
'is_safe' => ['html']
])
];
}