summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIzhar Firdaus <izhar@inigo-tech.com>2011-04-14 17:58:19 +0800
committerIzhar Firdaus <izhar@inigo-tech.com>2011-04-14 17:58:19 +0800
commitf87450cc47142b1a521d5eea627a55dcf8b8ac6f (patch)
tree1177fc835eaac8ff11533ad7b2970375d90b5c71
parentdc70df50fe5942802acf031581f610b69d01b75c (diff)
downloadhack-patches-f87450cc47142b1a521d5eea627a55dcf8b8ac6f.tar.gz
hack-patches-f87450cc47142b1a521d5eea627a55dcf8b8ac6f.tar.xz
hack-patches-f87450cc47142b1a521d5eea627a55dcf8b8ac6f.zip
strip all html
-rw-r--r--gnomeshell@pidgin.im/extension.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnomeshell@pidgin.im/extension.js b/gnomeshell@pidgin.im/extension.js
index fb61484..a15e0ad 100644
--- a/gnomeshell@pidgin.im/extension.js
+++ b/gnomeshell@pidgin.im/extension.js
@@ -42,8 +42,8 @@ function PidginNotification(source) {
}
function _fixText(text) {
- // remove A HREF
- let _text = text.replace(/<A HREF=".*?">(.*?)<\/A>/g, '$1');
+ // remove all tags
+ let _text = text.replace(/<\/?[^>]+(>|$)/g, "");
return _text;
}