#3650·vue

Allow SSR to render unescaped inlined script tags.

Author: iamsergiiCreated Sep 9, 2016Updated Apr 11, 2026
Labelsfeature request

I have a feature request - In order to fully replace templating engine server should be able to output raw unescaped contents for some tags like <script>. Currently all the transcluded content or the content provided by v-text/v-html is automatically escaped and the script becomes unusable.

Example of usage - output json-ld:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Person",
  "name": "John Doe",
  "jobTitle": "Graduate research assistant",
  "affiliation": "University of Dreams",
  "additionalName": "Johnny",
  "url": "http://www.example.com",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1234 Peach Drive",
    "addressLocality": "Wonderland",
    "addressRegion": "Georgia"
  }
}
</script>