Prevent HTMLPurify from removing ForkAwesome icon tags

This commit is contained in:
Hypolite Petovan 2021-04-04 20:21:31 -04:00
parent 62e7d0f40a
commit 3027b7d3aa

View file

@ -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);