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
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,