git » sdk » commit 0166fc6

Do not double escape node contents

author Stephen Paul Weber
2025-04-14 18:23:51 UTC
committer Stephen Paul Weber
2025-04-14 18:23:51 UTC
parent 7303e3bf21789b95e7254c904c0db27db338b4a6

Do not double escape node contents

snikket/streams/XmppStropheStream.hx +1 -1

diff --git a/snikket/streams/XmppStropheStream.hx b/snikket/streams/XmppStropheStream.hx
index 9223023..862b624 100644
--- a/snikket/streams/XmppStropheStream.hx
+++ b/snikket/streams/XmppStropheStream.hx
@@ -329,7 +329,7 @@ class XmppStropheStream extends GenericStream {
 						StropheStanza.add_child_ex(xml, convertFromStanza(stanza), false);
 					case CData(text):
 						var text_node = StropheStanza.create(ctx);
-						StropheStanza.set_text(text_node, NativeString.c_str(text.serialize()));
+						StropheStanza.set_text(text_node, NativeString.c_str(text.content));
 						StropheStanza.add_child_ex(xml, text_node, false);
 				};
 			}