diff --git a/lodash.js b/lodash.js index f179b6690..228270705 100644 --- a/lodash.js +++ b/lodash.js @@ -2352,7 +2352,7 @@ /*--------------------------------------------------------------------------*/ /** - * Escapes a string for insertion into HTML, replacing `&`, `<`, `>`, `"`, `'`, + * Escapes a string for insertion into HTML, replacing `&`, `<`, `"`, `'`, * and `/` characters. * * @static @@ -2369,7 +2369,6 @@ return (string + '') .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/\//g,'/'); diff --git a/test/test.js b/test/test.js index 07988749b..b9b808685 100644 --- a/test/test.js +++ b/test/test.js @@ -112,6 +112,16 @@ /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.escape'); + + (function() { + test('should not escape the ">" character', function() { + equal(_.escape('>'), '>'); + }); + }()); + + /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.forEach'); (function() {