1
0
Fork 0
mirror of synced 2024-12-27 17:13:21 -05:00
ultimate-vim/sources_non_forked/markdown-preview.nvim/app/pages/utils.js

7 lines
169 B
JavaScript
Raw Normal View History

2022-05-19 08:12:11 -04:00
export const escape = (str) => {
// escape html content
const d = document.createElement('div')
d.appendChild(document.createTextNode(str))
return d.innerHTML
}