Refactor htmlEscape/unescape methods

This commit is contained in:
pyoor 2018-08-29 18:06:10 -04:00
parent 52417f6723
commit 75369656ed

View file

@ -78,7 +78,7 @@ class common extends utils {
* @param {string} str * @param {string} str
* @returns {string} * @returns {string}
*/ */
static htmlEncode (str) { static htmlEscape (str) {
return htmlentities.encode(str) return htmlentities.encode(str)
} }
@ -87,7 +87,7 @@ class common extends utils {
* @param {string} str * @param {string} str
* @returns {string} * @returns {string}
*/ */
static htmlDencode (str) { static htmlUnescape (str) {
return htmlentities.decode(str) return htmlentities.decode(str)
} }