From bb08b0acd5dbdfba068fad5332ddf51b485fc477 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Fri, 10 Oct 2025 23:30:34 +0000 Subject: Improve 'App.getSelectedText()'. This also drops 'String.prototype.stripTags', which is no longer used. --- js/common.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'js/common.js') diff --git a/js/common.js b/js/common.js index 9635ab492..99cf52fa1 100755 --- a/js/common.js +++ b/js/common.js @@ -167,10 +167,6 @@ Array.prototype.uniq = function() { return this.filter((v, i, a) => a.indexOf(v) === i); }; -String.prototype.stripTags = function() { - return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, ''); -} - /* exported xhr */ const xhr = { _ts: 0, -- cgit v1.2.3-54-g00ecf