Secure way to output encoding HTML for insert raw html via javascript
I want to be 100% secure, I create raw html this way:
const template = document.createElement(‘template’)
template.innerHTML = html_raw
const cloned = template.content.cloneNode(true)
document.querySelector(‘#app’).appendChild(cloned);
W… Continue reading Secure way to output encoding HTML for insert raw html via javascript