1 | <?php |
||
17 | class HTMLSanitizer extends SanitizerAbstract{ |
||
18 | |||
19 | /** |
||
20 | * Sanitizes the input before parsing to prevent vulnerabilities or compatibility problems. |
||
21 | * |
||
22 | * @param $content string to sanitize |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function sanitizeInput(string $content):string{ |
||
29 | |||
30 | /** |
||
31 | * Sanitizes the output after parsing to prevent user created xss etc. |
||
32 | * Here you can run things like HTMLPurifier or whatever |
||
33 | * |
||
34 | * @param string $content |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function sanitizeOutput(string $content):string{ |
||
41 | } |
||
42 |