aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java
diff options
context:
space:
mode:
authorDamien Roth <damien.roth@gmail.com>2009-03-30 14:01:57 +0000
committerDamien Roth <damien.roth@gmail.com>2009-03-30 14:01:57 +0000
commitf6891f6f6479171a3cb5b0dbad07bf6b009f6038 (patch)
treee86053c78780b5d469be95e77806889cc7f8f740 /src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java
parenta0c5f9fb3dbd94054aa59861017b1a13c8e77c4e (diff)
downloadjitsi-f6891f6f6479171a3cb5b0dbad07bf6b009f6038.zip
jitsi-f6891f6f6479171a3cb5b0dbad07bf6b009f6038.tar.gz
jitsi-f6891f6f6479171a3cb5b0dbad07bf6b009f6038.tar.bz2
Fix issue #639 (remove html tags from the query message)
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java b/src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java
index 31ee6fc..c417d48 100644
--- a/src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/dict/OperationSetBasicInstantMessagingDictImpl.java
@@ -11,6 +11,7 @@ import java.util.*;
import net.java.dict4j.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.event.*;
+import net.java.sip.communicator.util.Html2Text;
/**
* Instant messaging functionalities for the Dict protocol.
@@ -87,6 +88,9 @@ public class OperationSetBasicInstantMessagingDictImpl
+ to);
}
+ // Remove all html tags from the message
+ message = createMessage(Html2Text.extractText(message.getContent()));
+
// Display the queried word
fireMessageDelivered(message, to);