test: add regression test for escaping payload (#22774)

This commit is contained in:
Daniel Roe 2023-08-23 21:03:10 +01:00 committed by GitHub
parent 585c26e973
commit 815230c1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
const state = useState(() => shallowRef({} as Record<string, any>)) const state = useState(() => shallowRef({} as Record<string, any>))
const nonDisplayedState = useState(() => shallowRef({} as Record<string, any>)) const nonDisplayedState = useState(() => shallowRef({} as Record<string, any>))
useState().value = '</scr' + 'ipt>'
if (import.meta.server) { if (import.meta.server) {
const r = ref('') const r = ref('')