Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit e9f5bf0

Browse files
author
Sebastien Chopin
committed
Fix issue #67
1 parent effa0e8 commit e9f5bf0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/basic/app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ new Vue({
1919
},
2020
meta: [
2121
{ name: 'description', content: 'Hello', vmid: 'test' }
22-
]
22+
],
23+
script: [
24+
{ innerHTML: '{ "@context": "http://www.schema.org", "@type": "Organization" }', type: 'application/ld+json' }
25+
],
26+
__dangerouslyDisableSanitizers: ['script']
2327
})
2428
}).$mount('#app')

src/client/updaters/updateTags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ export default function _updateTags (options = {}) {
3434

3535
if (tags && tags.length) {
3636
tags.forEach((tag) => {
37+
if (type === '__dangerouslyDisableSanitizers') return
3738
const newElement = document.createElement(type)
3839

3940
for (const attr in tag) {
40-
console.log(type, attribute, attr)
4141
if (tag.hasOwnProperty(attr)) {
4242
if (attr === 'innerHTML') {
4343
newElement.innerHTML = tag.innerHTML

0 commit comments

Comments
 (0)