protected function _needsCdata($str) { return $this->_isXhtml && preg_match('/(?:[<&]|\\-\\-|\\]\\]>)/', $str); }