Vue-meta: Custom noscript

Created on 5 Apr 2020  路  4Comments  路  Source: nuxt/vue-meta

Hello
I searched but could not find an answer.
I can set noscript like this.
noscript: [{ innerHTML: 'This website requires JavaScript.' }]
Is it possible set not only text, but with tags like.
noscript: [{ innerHTML: '<strong>This website requires JavaScript.</strong>' }]

question

Most helpful comment

Are you using Nuxt.js by any chance? Then you need to use hid not vmid

All 4 comments

noscript: [{
      innerHTML: "<strong>This website requires JavaScript.</strong>",
      body: true,
      vmid: 'test'
    }],
    __dangerouslyDisableSanitizersByTagID: {
      test: ['innerHTML']
    }

This not work ((

Are you using Nuxt.js by any chance? Then you need to use hid not vmid

Dear @pimlie, thanks.
Yes I use Nuxt.js, and hid work fine.

Was this page helpful?
0 / 5 - 0 ratings