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) }