private function encode($str) { return str_replace($this->_special, '', htmlspecialchars($str, ENT_IGNORE, 'UTF-8')); }