0
0
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:
Tan Li Hau 2019-10-28 20:48:52 +08:00
parent 2b2f40d32a
commit da4bd41d40
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default {
html: `<p>&lt;b\nstyle='color:\nred;'&gt;RED?!?&lt;/b&gt;</p>`,
};

View File

@ -0,0 +1,5 @@
<script>
const content = `<b style='color: red;'>RED?!?</b>`
</script>
<p>{content}</p>