From 8a45cc73a3a31834aa6efafb362970f808173f5c Mon Sep 17 00:00:00 2001 From: alinex Date: Mon, 9 Jan 2017 16:07:37 +0100 Subject: [PATCH] Fix bug in decoding html. --- src/mod/string.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/string.coffee b/src/mod/string.coffee index 1e38125..89ddb3c 100644 --- a/src/mod/string.coffee +++ b/src/mod/string.coffee @@ -542,7 +542,7 @@ exports.htmlDecode = (text) -> ">": ">" """: "\"" "'": "'" - text.replace /[&<>"']/g, (m) -> return map[m] + text.replace /(&|<|>|"|')/g, (m) -> return map[m] ###