/** * Replace container placeholder in content on container content * * @param string $content * @param string $containerContent */ protected function _applyToContent(&$content, $containerContent) { $containerContent = $this->_placeholder->getStartTag() . $containerContent . $this->_placeholder->getEndTag(); $content = str_replace($this->_placeholder->getReplacer(), $containerContent, $content); return $content; //$helper = new Ves_Optimize_Helper_Filter(); //$content = str_replace('text/javascript','text/rocketscript',$content);//$helper->processContent($content); }
/** * Retrieve placeholder replacer * * @param array $matches Matches by preg_replace_callback * @return string */ protected function _getPlaceholderReplacer($matches) { return $this->_placeholder->getReplacer(); }