From 11345b4d0099020fc3b156ddd504d98898498fe0 Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Thu, 14 Apr 2011 22:06:14 +0800 Subject: escape text before sending to pidgin --- gnomeshell@pidgin.im/extension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnomeshell@pidgin.im/extension.js b/gnomeshell@pidgin.im/extension.js index 1add53b..2428dcd 100644 --- a/gnomeshell@pidgin.im/extension.js +++ b/gnomeshell@pidgin.im/extension.js @@ -186,7 +186,8 @@ Source.prototype = { respond: function(text) { let proxy = this._client.proxy(); - proxy.PurpleConvImSendRemote(proxy.PurpleConvImSync(this._conversation), text); + let _text = GLib.markup_escape_text(text, -1); + proxy.PurpleConvImSendRemote(proxy.PurpleConvImSync(this._conversation), _text); }, _onBuddyStatusChange: function (emitter, buddy, old_status_id, new_status_id) { -- cgit