mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix null string escape
This commit is contained in:
parent
f6232d71b6
commit
d4be81155e
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ function humanTime(seconds) {
|
|||
}
|
||||
|
||||
function escapeHTML(str) {
|
||||
if(!str) return str;
|
||||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue