https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e7d0f
)
Prevent HTMLPurify from removing ForkAwesome icon tags
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 5 Apr 2021 00:21:31 +0000
(20:21 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 5 Apr 2021 00:21:31 +0000
(20:21 -0400)
src/Content/Text/HTML.php
patch
|
blob
|
history
diff --git
a/src/Content/Text/HTML.php
b/src/Content/Text/HTML.php
index
b68cbf6
..
6eb02bf
100644
(file)
--- a/
src/Content/Text/HTML.php
+++ b/
src/Content/Text/HTML.php
@@
-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);