private function replaceWhitespacesInInlineElements($element, PlaceholderContainer $placeholderContainer)
    {
        return preg_replace_callback('/>\s/', function ($match) use ($placeholderContainer) {
            return '>'.$placeholderContainer->createPlaceholder(' ');
        }, $element);
    }
private function replaceWhitespacesInInlineElements($element, PlaceholderContainer $placeholderContainer)
    {
        return preg_replace_callback('/>\s/', function ($match) use ($placeholderContainer) {
            return '>'.$placeholderContainer->createPlaceholder(' ');
        }, $element);
    }
private function replaceWhitespacesInInlineElements ( $ element , PlaceholderContainer $ placeholderContainer ) { return preg_replace_callback ( '/>\s/' , function ( $ match ) use ( $ placeholderContainer ) { return '>' . $ placeholderContainer -> createPlaceholder ( ' ' ) ; } , $ element ) ; }
Replace the whitespaces in inline elements with a placeholder.

@param string $element
@param \ArjanSchouten\HtmlMinifier\PlaceholderContainer $placeholderContainer

@return string
Replace the whitespaces in inline elements with a placeholder .