1 | <?php |
||
14 | class Escape extends AbstractViewHelper |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Gets called within view |
||
19 | * |
||
20 | * @param ViewController $view The view controller |
||
21 | * @param string $data The data which should be escaped |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function __invoke(ViewController $view, string $data) |
||
29 | |||
30 | /** |
||
31 | * Escape string |
||
32 | * |
||
33 | * @param string $data The data which should be escaped |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | protected function escape(string $data) |
||
41 | |||
42 | } |