Fix status showing as undefined
This commit is contained in:
parent
71822f94b6
commit
84abbae868
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function onlyIfExists(string, check) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeHtmlSafe(str) {
|
function makeHtmlSafe(str="") {
|
||||||
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue