mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
test: add regression test for escaping payload (#22774)
This commit is contained in:
parent
585c26e973
commit
815230c1b5
1
test/fixtures/basic/pages/json-payload.vue
vendored
1
test/fixtures/basic/pages/json-payload.vue
vendored
@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
const state = useState(() => shallowRef({} as Record<string, any>))
|
||||
const nonDisplayedState = useState(() => shallowRef({} as Record<string, any>))
|
||||
useState().value = '</scr' + 'ipt>'
|
||||
|
||||
if (import.meta.server) {
|
||||
const r = ref('')
|
||||
|
Loading…
Reference in New Issue
Block a user