Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 1 | public static function sanitizeRichText(string $string): string |
|
14 | { |
||
15 | 1 | $sanitized = strip_tags($string, ['ul', 'ol', 'li', 'p', 'br', 'sup', 'sub', 'a', 'strong', 'em']); |
|
1 ignored issue
–
show
|
|||
16 | |||
17 | 1 | return $sanitized; |
|
18 | } |
||
29 |