1 | <?php |
||
17 | final class MarkdownSanitizer 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{ |
||
31 | |||
32 | /** |
||
33 | * Sanitizes the output after parsing to prevent user created xss etc. |
||
34 | * Here you can run things like HTMLPurifier or whatever |
||
35 | * |
||
36 | * @param string $content |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function sanitizeOutput(string $content):string{ |
||
44 | } |
||
45 |