fabiang/xmpp

Ampersand XML unterminated entity reference with &

shahzadyounas opened this issue · 0 comments

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