Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/@vuepress/core/lib/client/root-mixins/updateMeta.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unionBy from 'lodash/unionBy'
import escape from 'escape-html'

export default {
// created will be called on both client and ssr
Expand Down Expand Up @@ -132,7 +133,7 @@ function renderPageMeta (meta) {
return meta.map(m => {
let res = `<meta`
Object.keys(m).forEach(key => {
res += ` ${key}="${m[key]}"`
res += ` ${key}="${escape(m[key])}"`
})
return res + `>`
}).join('\n ')
Expand Down