diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index b68cbf67f3..6eb02bfbe5 100644 --- 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);