From 998a3f741a03323943b2cd28a5fe5433c3b98b50 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 29 Dec 2017 13:26:58 +0000 Subject: [PATCH] Travis build: 602 --- README.md | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3127ec90..c2fb8b122 100644 --- a/README.md +++ b/README.md @@ -3590,7 +3590,7 @@ truncateString('boomerang', 7); // 'boom...' Unescapes escaped HTML characters. -Use `String.replace()` with a regex that matches the characters that need to be escaped, using a callback function to replace each escaped character instance with its associated unescaped character using a dictionary (object). +Use `String.replace()` with a regex that matches the characters that need to be unescaped, using a callback function to replace each escaped character instance with its associated unescaped character using a dictionary (object). ```js const unescapeHTML = str => diff --git a/docs/index.html b/docs/index.html index bb72b7b1f..400939957 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1663,7 +1663,7 @@ Return the string truncated to the desired length, with ... appende

unescapeHTML

Unescapes escaped HTML characters.

-

Use String.replace() with a regex that matches the characters that need to be escaped, using a callback function to replace each escaped character instance with its associated unescaped character using a dictionary (object).

+

Use String.replace() with a regex that matches the characters that need to be unescaped, using a callback function to replace each escaped character instance with its associated unescaped character using a dictionary (object).

const unescapeHTML = str =>
   str.replace(
     /&|<|>|'|"/g,