mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
This commit is contained in:
@@ -44,13 +44,20 @@
|
||||
};
|
||||
|
||||
helpers.escape = function(str) {
|
||||
var utils = utils || require('../utils');
|
||||
return utils.escapeHTML(str);
|
||||
if (typeof utils !== 'undefined') {
|
||||
return utils.escapeHTML(str);
|
||||
} else {
|
||||
return require('../utils').escapeHTML(str);
|
||||
}
|
||||
};
|
||||
|
||||
helpers.stripTags = function(str) {
|
||||
var S = S || require('string');
|
||||
return S(str).stripTags().s;
|
||||
if (typeof S !== 'undefined') {
|
||||
return S(str).stripTags().s;
|
||||
} else {
|
||||
var S = require('string');
|
||||
return S(str).stripTags().s;
|
||||
}
|
||||
};
|
||||
|
||||
helpers.generateCategoryBackground = function(category) {
|
||||
|
||||
Reference in New Issue
Block a user