Home

Issue: 1164

How correctly use ld+json scripts

[issue link]

Hi, I want to use in head() props of page script with ld+json content type. With documentation of vue-meta I set example:

script: [
  { innerHTML: '{ "@context": "http://schema.org" }', type: 'application/ld+json' }
]

but on rendered page I has output with

<script data-n-head="true" type="application/ld+json">{ &quot;@context&quot;: &quot;http://schema.org&quot; }</script>

As you can see, content inside tag was escaped and not valid. How I must set vue-meta for correct usage?

This question is available on Nuxt.js community (#c1022)