Prevent HTMLPurify from removing ForkAwesome icon tags
This commit is contained in:
parent
62e7d0f40a
commit
3027b7d3aa
|
@ -1003,6 +1003,13 @@ class HTML
|
|||
'_blank' => true,
|
||||
]);
|
||||
|
||||
$config->set('AutoFormat.RemoveEmpty.Predicate', [
|
||||
'colgroup' => [], // |
|
||||
'th' => [], // |
|
||||
'td' => [], // |
|
||||
'iframe' => ['src'], // ↳ Default HTMLPurify values
|
||||
'i' => ['class'], // Allows forkawesome icons
|
||||
]);
|
||||
|
||||
// Uncomment to debug HTMLPurifier behavior
|
||||
//$config->set('Core.CollectErrors', true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user