// +----------------------------------------------------------------------+ // /** * Remove PHP tags and replace them with echo '< ? ' * * should be the first filter if you use it * * * * @package HTML_Template_Flexy * */ class HTML_Template_Flexy_Compiler_Regex_Php { /** * Standard Set Engine * * * @param object HTML_Template_Flexy the main engine * @access private */ function _set_engine(&$engine) { } /* * replace the php tags * * @param string The template * @access public */ function pre_strip_php ($input) { $input = str_replace("","'; ?>",$input); return str_replace("__{<__?}__","'; ?>",$input); } } ?>