1 | <?php |
||
12 | class ContentPurifier { |
||
13 | |||
14 | /** |
||
15 | * @var HTMLPurifier |
||
16 | */ |
||
17 | private $purifier; |
||
18 | |||
19 | const ALLOWED_HTML_TAGS = ' |
||
20 | h1,h2,h3,h4,h5,h6, |
||
21 | p, |
||
22 | br,hr, |
||
23 | ul,ol,li, |
||
24 | span,b,i,u,strong,em, |
||
25 | a[href|target], |
||
26 | img[src|alt], |
||
27 | table[class],thead,tbody,tr,th[scope],td[scope] |
||
28 | '; |
||
29 | |||
30 | public function __construct() { |
||
38 | |||
39 | public function purify( string $html ): string { |
||
42 | |||
43 | } |
||
44 |