Check whether the comment content is ignored by the parser. >>>>templates/test.tpl <?xml version="1.0" ?> <foo> <!-- A < B --> </foo> >>>>data.php $this->tpl->printComments = true; >>>>expected.txt OUTPUT >>>>result.txt <foo> <!-- A < B --> </foo>