diff --git a/source/org/jivesoftware/smack/packet/Presence.java b/source/org/jivesoftware/smack/packet/Presence.java index 52e17d0f0..ebc20565b 100644 --- a/source/org/jivesoftware/smack/packet/Presence.java +++ b/source/org/jivesoftware/smack/packet/Presence.java @@ -184,7 +184,7 @@ public class Presence extends Packet { } buf.append(">"); if (status != null) { - buf.append("").append(status).append(""); + buf.append("").append(StringUtils.escapeForXML(status)).append(""); } if (priority != -1) { buf.append("").append(priority).append("");