1 | <?php |
||
19 | class TwigExtension extends \Twig_Extension |
||
20 | { |
||
21 | /** |
||
22 | * @var HtmlFilterApiInterface |
||
23 | */ |
||
24 | private $htmlFilterApi; |
||
25 | |||
26 | /** |
||
27 | * TwigExtension constructor. |
||
28 | * |
||
29 | * @param HtmlFilterApiInterface $htmlFilterApi |
||
30 | */ |
||
31 | public function __construct(HtmlFilterApiInterface $htmlFilterApi) |
||
35 | |||
36 | public function getFilters() |
||
42 | |||
43 | /** |
||
44 | * @param $string |
||
45 | * @return string |
||
46 | */ |
||
47 | public function safeHtml($string) |
||
51 | } |
||
52 |