mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
4 lines
190 B
TypeScript
4 lines
190 B
TypeScript
export function trivialXss(s: string) {
|
|
const html = "<span>" + s + "</span>"; // NOT OK - this file is recognized as a main file.
|
|
document.querySelector("#html").innerHTML = html;
|
|
} |