protected function handle_character($parser, $data) { //echo "depth ".$this->depth.", character ".$data." for stanza ".$this->stanza->name.PHP_EOL; if ($this->stanza) { $this->stanza->t(htmlentities($data, ENT_COMPAT, "UTF-8"), true); } }