mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-22 23:22:12 +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()
|
||||
{
|
||||
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