1
0
Fork 0
mirror of synced 2024-11-15 13:38:58 -05:00
ultimate-vim/sources_non_forked/markdown-preview.nvim/app/pages/utils.js
2022-05-19 20:12:11 +08:00

6 lines
169 B
JavaScript

export const escape = (str) => {
// escape html content
const d = document.createElement('div')
d.appendChild(document.createTextNode(str))
return d.innerHTML
}