mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
lodash: No longer have escape translate the ">" character. [jddalton, mathiasbynens]
Former-commit-id: 58d8ef98f3699a62b57a460b45921785fa2440b0
This commit is contained in:
@@ -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, ''')
|
||||
.replace(/\//g,'/');
|
||||
|
||||
Reference in New Issue
Block a user