Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

twols's avatar
Level 1

Curly braces are parsed by Vue and break the site

Hello all,

I'm facing the problem that if someone enters the curly braces as content, Laravel prints them out and Vue interprets this output. The result is that the content suddenly disappears. Now I've found the fix on Laracasts to add "v-pre" to the container tag. It works, but would need to enter this change everywhere in the template to prevent the bug. Is there an easier way? Stripping down the curly braces on each save() for every model/attribute? I can't remove Vue, but need to prevent it to break the page every time.

0 likes
1 reply
Snapey's avatar

Vue is bound to the body tag by default so you could restrict it by only adding it to the elements where you use Vue ?

Otherwise its v-pre on all user supplied content

1 like

Please or to participate in this conversation.