Refactor htmlEscape/unescape methods
This commit is contained in:
parent
52417f6723
commit
75369656ed
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue