mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
update @ Sat 9 Oct 04:59:39 EEST 2021
This commit is contained in:
parent
dfc2c0eb45
commit
de965ba6e6
2 changed files with 19 additions and 8 deletions
|
@ -54,4 +54,15 @@ const locations = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const escape_HTML = str =>
|
||||||
|
str.replace(
|
||||||
|
/[&<>'"]/g,
|
||||||
|
tag =>
|
||||||
|
({
|
||||||
|
'&': '&',
|
||||||
|
'<': '<',
|
||||||
|
'>': '>',
|
||||||
|
"'": ''',
|
||||||
|
'"': '"'
|
||||||
|
}[tag] || tag)
|
||||||
|
);
|
||||||
|
|
|
@ -168,5 +168,5 @@ function whoami() {
|
||||||
|
|
||||||
|
|
||||||
function echo(argv) {
|
function echo(argv) {
|
||||||
return argv.join(" ");
|
return escape_HTML(argv.join(" "));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue