diff --git a/escape.js b/escape.js index 6392bda41..fa2ed605a 100644 --- a/escape.js +++ b/escape.js @@ -1,10 +1,10 @@ /** Used to map characters to HTML entities. */ const htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' } /** Used to match HTML entities and HTML characters. */ @@ -36,7 +36,7 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source) * @example * * escape('fred, barney, & pebbles') - * // => 'fred, barney, & pebbles' + * // => 'fred, barney, & pebbles' */ function escape(string) { return (string && reHasUnescapedHtml.test(string))