ZF-4190: Zend_Log_Formatter_Xml and invalid xml

Description

{quote} $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Stream('php://output'); $writer->setFormatter(new Zend_Log_Formatter_Xml()); $logger->addWriter($writer);

$logger->err('&amp'); {quote}

got error:

{quote} DOMElement::__construct() [function.DOMElement---construct]: unterminated entity reference amp' in \library\Zend\Log\Formatter\Xml.php:78 {quote}

Comments

Resolved in trunk, using htmlspecialchars() on the log-message.

Changing issues in preparation for the 1.7.0 release.