SpiceQA
Questions Tags Users Badges

Nuxt.config.js noscript innerHtml rendering as it on browser

user_12883540 0
Created Jun 8, 2020 Edited Jun 8, 2020
Viewed 2072

I have disabled javascript from browser

Added inner html for noscript tag in nuxt.config.js

Expected behavior is it should add iframe element inside body but its rendering text as it. How can we add it as an element?

nuxt.js vue.js innerhtml noscript
Share
1 Answers

Vue sanitizes HTML entities in every property. You need to use __dangerouslyDisableSanitizersByTagID or __dangerouslyDisableSanitizers

When you add it should work.

__dangerouslyDisableSanitizers: ['noscript']
edited Jun 30, 2020
user_120407460
answered Jun 30, 2020
Related
Terms of service Privacy policy
Powered by Answer