diff --git a/lodash.js b/lodash.js index f29d58873..6dbcef9dc 100644 --- a/lodash.js +++ b/lodash.js @@ -2675,6 +2675,9 @@ * // => "Curly, Larry & Moe" */ function escape(string) { + // the `>` character doesn't require escaping in HTML and has no special + // meaning unless it's part of an open tag + // http://mathiasbynens.be/notes/ambiguous-ampersands (semi-related fun fact) return (string + '') .replace(/&/g, '&') .replace(/