Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
fix(purifier): do not override 'RemoveEmtpy.Predicate' default values
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Oct 31, 2018
1 parent 2bdd7c3 commit f80b966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/purifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ function load_purifier() {
$config->set('AutoFormat', 'RemoveEmpty', true);
$config->set('AutoFormat', 'RemoveEmpty.Predicate', array(
'div' => array(0 => 'class'),
'span' => array(0 => 'class')
'span' => array(0 => 'class'),
'iframe' => array(0 => 'src'),
'colgroup' => array(),
'th' => array(),
'td' => array(),
));
$config->set('AutoFormat', 'RemoveEmpty.RemoveNbsp', true);
$config->set('AutoFormat', 'AutoParagraph', true);
Expand Down

0 comments on commit f80b966

Please sign in to comment.