mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
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,
|
||||
]);
|
||||
|
||||
$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 a new issue