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?
最佳答案
Vue 清理每个属性中的 HTML 实体。您需要使用 __dangerouslyDisableSanitizersByTagID或 __dangerouslyDisableSanitizers
当你添加它应该工作。
__dangerouslyDisableSanitizers: ['noscript']
关于vue.js - Nuxt.config.js noscript innerHtml 在浏览器上渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62262160/