Prevent HTMLPurify from removing ForkAwesome icon tags
This commit is contained in:
parent
62e7d0f40a
commit
3027b7d3aa
1 changed files with 7 additions and 0 deletions
|
@ -1003,6 +1003,13 @@ class HTML
|
||||||
'_blank' => true,
|
'_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
|
// Uncomment to debug HTMLPurifier behavior
|
||||||
//$config->set('Core.CollectErrors', true);
|
//$config->set('Core.CollectErrors', true);
|
||||||
|
|
Loading…
Reference in a new issue