From f87450cc47142b1a521d5eea627a55dcf8b8ac6f Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Thu, 14 Apr 2011 17:58:19 +0800 Subject: strip all html --- gnomeshell@pidgin.im/extension.js | 4 ++-- 1 file 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>/g, '$1'); + // remove all tags + let _text = text.replace(/<\/?[^>]+(>|$)/g, ""); return _text; } -- cgit