stringify helper for t.js

v1.18.x
Julian Lam 10 years ago
parent 60fecdbdf8
commit 8bc2d97352

@ -21,6 +21,11 @@
return '<meta ' + name + property + content + '/>';
};
helpers.stringify = function(obj) {
// Turns the incoming object into a JSON string
return JSON.stringify(obj).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/g, '&quot;');
};
// Groups helpers
helpers.membershipBtn = function(groupObj) {
if (groupObj.isMember) {

Loading…
Cancel
Save