protected function _processElementName($parentContent, $element, $token, $elementName, $void, $rawText) { if (strtolower($elementName) == 'script') { $this->_outputBeforeScript = $this->_filteredOutput; $this->_insideScript = true; } else { parent::_processElementName($parentContent, $element, $token, $elementName, $void, $rawText); } }