mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Fixes Issue #350 -- Making _.escape dumber to allow double-escaping of HTML entities.
This commit is contained in:
@@ -41,6 +41,11 @@ $(document).ready(function() {
|
||||
equals(_('champ').myReverse(), 'pmahc', 'mixed in a function to the OOP wrapper');
|
||||
});
|
||||
|
||||
test("utility: _.escape", function() {
|
||||
equals(_.escape("Curly & Moe"), "Curly & Moe");
|
||||
equals(_.escape("Curly & Moe"), "Curly & Moe");
|
||||
});
|
||||
|
||||
test("utility: template", function() {
|
||||
var basicTemplate = _.template("<%= thing %> is gettin' on my noives!");
|
||||
var result = basicTemplate({thing : 'This'});
|
||||
|
||||
Reference in New Issue
Block a user