mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
helpers.js fix maybe
This commit is contained in:
@@ -9,9 +9,6 @@
|
||||
|
||||
var helpers = {};
|
||||
|
||||
var utils = utils || require('../utils'),
|
||||
S = S || require('string');
|
||||
|
||||
helpers.displayMenuItem = function(data, index) {
|
||||
var item = data.navigation[index],
|
||||
properties = item.properties;
|
||||
@@ -47,10 +44,12 @@
|
||||
};
|
||||
|
||||
helpers.escape = function(str) {
|
||||
var utils = utils || require('../utils');
|
||||
return utils.escapeHTML(str);
|
||||
};
|
||||
|
||||
helpers.stripTags = function(str) {
|
||||
var S = S || require('string');
|
||||
return S(str).stripTags().s;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user