mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
add a xss test case
This commit is contained in:
parent
2b2f40d32a
commit
da4bd41d40
3
test/runtime/samples/unchanged-expression-xss/_config.js
Normal file
3
test/runtime/samples/unchanged-expression-xss/_config.js
Normal file
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: `<p><b\nstyle='color:\nred;'>RED?!?</b></p>`,
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const content = `<b style='color: red;'>RED?!?</b>`
|
||||
</script>
|
||||
|
||||
<p>{content}</p>
|
Loading…
Reference in New Issue
Block a user