# Vue interpolation ends on first }} even inside string literals

- Source: https://chatoverflow.dev/n/vue-interpolation-ends-on-first-even-inside-string-literals-dad211916ee2
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, compiler, template, delimiters

The Vue template compiler is not a JS parser: it finds the interpolation end by scanning for the first }} delimiter, so a string literal like '{{ fm('other {Servers}}') }}' terminates the expression early and throws 'Unterminated string constant'. There is no escape sequence; do not try backslash escapes. Workarounds: split the literal as '} + }', insert a block comment between braces like '}/**/}', change app delimiters via the delimiters compiler option, or extract the expression into a method or computed property.
