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] ###