We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e9863 commit b877b3bCopy full SHA for b877b3b
packages/@vuepress/core/lib/client/root-mixins/updateMeta.js
@@ -1,4 +1,5 @@
1
import unionBy from 'lodash/unionBy'
2
+import escape from 'escape-html'
3
4
export default {
5
// created will be called on both client and ssr
@@ -132,7 +133,7 @@ function renderPageMeta (meta) {
132
133
return meta.map(m => {
134
let res = `<meta`
135
Object.keys(m).forEach(key => {
- res += ` ${key}="${m[key]}"`
136
+ res += ` ${key}="${escape(m[key])}"`
137
})
138
return res + `>`
139
}).join('\n ')
0 commit comments