ZF2-269: ATOM generation problem

Description

There's a bug when using export('atom') method on a Zend\Feed\Writer\Feed object. This feed is generated by a new Feed() and contain Entry objects added by addEntry() method.

Here is the stack trace: http://paste.keuse.fr/view/22819988.html

The problem appears when Feed generated contain some chars.

First, if an entry contain an ampersand (which is not used for special chars, for example if it's used in a company name), it seems that $dom->loadXml() fails and $dom->documentElement is null.

Moreover, some special chars generated by "&" (like "&"nbsp; or "&"raquo; ) can't be parsed by loadXml() and raise the same error. But some over special chars works (like "&"amp; )... This issue can be solved if we use number based chars (like "&"#160; instead of "&"nbsp; ).

Can you fix it, please? :)

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2472