mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-15 20:25:19 +02:00
The markdown filter is automatically marked as safe
This commit is contained in:
parent
65c5223d9c
commit
68170b74e8
|
@ -16,7 +16,7 @@ class MarkdownTwigExtension extends \Twig_Extension
|
||||||
public function getFilters()
|
public function getFilters()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'markdown' => new \Twig_Filter_Method($this, 'markdown'),
|
'markdown' => new \Twig_Filter_Method($this, 'markdown', array('is_escaper' => true)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue