*
$outputSource = preg_replace("/><\/(area|base|br|col|command|embed|hr|img|input|link|meta|param|source)>/", " />", $outputSource);
$html = mb_eregi_replace("", '', $html);
remove white space before closing tags
$html = mb_eregi_replace("'\s+>", "'>", $html);
$html = mb_eregi_replace('"\s+>', '">', $html);
public static remove_scripts ( $html ) |