mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
ESlint operator-assignment, block-scoped-var
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
};
|
||||
|
||||
helpers.stripTags = function (str) {
|
||||
if (typeof S !== 'undefined') {
|
||||
return S(String(str)).stripTags().s;
|
||||
if (typeof window !== 'undefined' && window.S) {
|
||||
return window.S(String(str)).stripTags().s;
|
||||
} else {
|
||||
var S = require('string');
|
||||
return S(String(str)).stripTags().s;
|
||||
|
||||
Reference in New Issue
Block a user