mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 00:21:51 +02:00
Fix null string escape
This commit is contained in:
parent
f6232d71b6
commit
d4be81155e
|
@ -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…
Reference in a new issue