/** * @see TemplatePluginCompiler::executeStart() */ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { $compiler->pushTag('lang'); $newTagArgs = array(); foreach ($tagArgs as $key => $arg) { $newTagArgs[$key] = 'StringUtil::encodeHTML(' . $arg . ')'; } $tagArgs = $compiler->makeArgString($newTagArgs); return "<?php \$this->tagStack[] = array('lang', array({$tagArgs})); ob_start(); ?>"; }