From 75369656edf467305931481749cde3aca53a7e6f Mon Sep 17 00:00:00 2001 From: pyoor Date: Wed, 29 Aug 2018 18:06:10 -0400 Subject: [PATCH] Refactor htmlEscape/unescape methods --- lib/utils/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/common.js b/lib/utils/common.js index 3b9d1bc..88665d0 100644 --- a/lib/utils/common.js +++ b/lib/utils/common.js @@ -78,7 +78,7 @@ class common extends utils { * @param {string} str * @returns {string} */ - static htmlEncode (str) { + static htmlEscape (str) { return htmlentities.encode(str) } @@ -87,7 +87,7 @@ class common extends utils { * @param {string} str * @returns {string} */ - static htmlDencode (str) { + static htmlUnescape (str) { return htmlentities.decode(str) }