| 1 | <?php |
||
| 18 | class StripHtml extends FilterRule |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $excludeTags; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Set tags that wont be stripped |
||
| 27 | * |
||
| 28 | * @param string|null $excludeTags |
||
| 29 | */ |
||
| 30 | 4 | public function __construct($excludeTags = null) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Strip html tags from the value |
||
| 37 | * |
||
| 38 | * @param mixed $value |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 4 | public function filter($value) |
|
| 49 | } |
||
| 50 |