fabiang / xmpp

Library for XMPP protocol connections (Jabber) for PHP
Other
179 stars 83 forks source link

Ampersand XML unterminated entity reference with & #50

Open shahzadyounas opened 7 years ago

shahzadyounas commented 7 years ago

Hi

I am getting:

lPRODnode1 is reporting *Failed sending item 707990 with error: Fabiang\Xmpp\Stream\XMLStream::createAttributeNodes(): unterminated entity reference

whenever my xmpp message to send has an & in it. I can see it is being escaped correctly ($message ->toString() shows "&"

Any ideas why I get this error when I try and send the xmpp msg? (fyi this occurs when I send the &amp as an attribute to a custom xml element sent in the xmpp message. Note I am running XML::quote on it as you do in your Message object.

Tx