skolodyazhnyy / symfony-rpc-bundle

Simple JSON and XML RPC Server/Client implementation for Symfony 2
MIT License
25 stars 22 forks source link

DOMDocument::createElement(): unterminated entity reference error #17

Closed burahimu closed 8 years ago

burahimu commented 8 years ago

Hi,

I am seeing the following error when a string has a & in it:

my string : "PAO & DAO - Publication et Dessin Assisté par Ordinateur"

Warning: DOMDocument::createElement(): unterminated entity reference  DAO - Publication et Dessin Assisté par Ordinateur in /var/www/vendor/seven/symfony-rpc-bundle/Seven/RpcBundle/XmlRpc/ValueType/StringType.php line 24

There seems to be a reference to avoiding these types of errors: http://www.php.net/manual/en/domdocument.createelement.php#73617 if it helps.

If I can I'll make a fix !

Thanks,

burahimu commented 8 years ago

See #18