public function apply($html) {
// work-around for a libxml bug that causes a single space between
// some inline elements to be dropped
- $html = str_replace('> <', '><', $html);
+ $html = str_replace('> <', '> <', $html);
$html = $this->getPurifier()->purify($html);
// work-around for a libxml bug that causes a single space between
// some inline elements to be dropped
- $html = preg_replace('~>\x{E000}\x{EFFF}\x{E000}<~u', '> <', $html);
+ $html = str_replace(' ', ' ', $html);
return $html;
}
// work-around for a libxml bug that causes a single space between
// some inline elements to be dropped
- $html = str_replace('> <', '><', $html);
+ $html = str_replace('> <', '> <', $html);
// Ignore all errors when loading the HTML string, because DOMDocument does not
// provide a proper way to add custom HTML elements (even though explicitly allowed
// work-around for a libxml bug that causes a single space between
// some inline elements to be dropped
- $html = preg_replace('~>\x{E000}\x{EFFF}\x{E000}<~u', '> <', $html);
+ $html = str_replace(' ', ' ', $html);
return $html;
}