diff --git a/unescape.js b/unescape.js index 55f053169..e10d3cdc2 100644 --- a/unescape.js +++ b/unescape.js @@ -10,12 +10,12 @@ const htmlUnescapes = { } /** Used to match HTML entities and HTML characters. */ -const reEscapedHtml = /&(?:amp|lt|gt|quot|#39)g +const reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g const reHasEscapedHtml = RegExp(reEscapedHtml.source) /** * The inverse of `escape`this method converts the HTML entities - * `&, `<` `>`,`"`, nd `'` in`string` to + * `&`, `<`, `>`, `"` and `'` in `string` to * their corresponding characters. * * **Note:** No other HTML entities are unescaped. To unescape additional @@ -28,7 +28,7 @@ const reHasEscapedHtml = RegExp(reEscapedHtml.source) * @see escape, escapeRegExp * @example * - * unescape('fred, barney, &pebbles') + * unescape('fred, barney, & pebbles') * // => 'fred, barney, & pebbles' */ function unescape(string) {