| 1 | <?php |
||
| 12 | class EscapeNewLinesViewHelper extends AbstractViewHelper |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | protected $escapeChildren = false; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Disable the output escaping interceptor so that the value is not htmlspecialchar'd twice. |
||
| 21 | * |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | protected $escapeOutput = false; |
||
| 25 | |||
| 26 | public function initializeArguments() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Escapes special characters with their escaped counterparts as needed using PHPs htmlspecialchars() function. |
||
| 34 | * |
||
| 35 | * @return string the altered string |
||
| 36 | * |
||
| 37 | * @see http://www.php.net/manual/function.htmlspecialchars.php |
||
| 38 | * |
||
| 39 | * @api |
||
| 40 | */ |
||
| 41 | public function render() |
||
| 50 | } |
||
| 51 |