1 | <?php |
||
13 | class RemoveComments implements ManipulationInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Patterns for white-listing comments inside content |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $whiteListCommentsPatterns = []; |
||
22 | |||
23 | /** |
||
24 | * @param string $html The original HTML |
||
25 | * @param array $configuration Configuration |
||
26 | * |
||
27 | * @return string the manipulated HTML |
||
28 | */ |
||
29 | public function manipulate($html, array $configuration = []) |
||
49 | |||
50 | /** |
||
51 | * Check if a comment is defined to be kept in a pattern whiteListOfComments |
||
52 | * |
||
53 | * @param string $commentHtml |
||
54 | * |
||
55 | * @return boolean |
||
56 | */ |
||
57 | protected function keepComment($commentHtml) |
||
77 | } |
||
78 |