mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Fixed _.template() HTML escaping for when _ isn't in scope, due
to noConflict() and minification.
This commit is contained in:
@@ -899,8 +899,8 @@
|
|||||||
.replace(/\n/g, '\\n')
|
.replace(/\n/g, '\\n')
|
||||||
.replace(/\t/g, '\\t')
|
.replace(/\t/g, '\\t')
|
||||||
+ "');}return __p.join('');";
|
+ "');}return __p.join('');";
|
||||||
var func = new Function('obj', tmpl);
|
var func = new Function('obj', '_', tmpl);
|
||||||
return data ? func(data) : func;
|
return data ? func(data, _) : function(data) { return func(data, _) };
|
||||||
};
|
};
|
||||||
|
|
||||||
// The OOP Wrapper
|
// The OOP Wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user