protected function setCDataPlaceholder($contents, PlaceholderContainer $placeholderContainer)
    {
        return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function ($match) use ($placeholderContainer) {
            return $placeholderContainer->createPlaceholder($match[0]);
        }, $contents);
    }
protected function setCDataPlaceholder($contents, PlaceholderContainer $placeholderContainer)
    {
        return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function ($match) use ($placeholderContainer) {
            return $placeholderContainer->createPlaceholder($match[0]);
        }, $contents);
    }
protected function setCDataPlaceholder ( $ contents , PlaceholderContainer $ placeholderContainer ) { return preg_replace_callback ( '/<!\[CDATA\[((?!\]\]>).)*\]\]>/s' , function ( $ match ) use ( $ placeholderContainer ) { return $ placeholderContainer -> createPlaceholder ( $ match [ 0 ] ) ; } , $ contents ) ; }
Replace CData with a temporary placeholder.

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

@return string
Replace CData with a temporary placeholder .