Allow HTML
This commit is contained in:
parent
4eaecb9421
commit
4174948cc5
5 changed files with 7 additions and 5 deletions
|
@ -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']
|
||||
])
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue