Andrea Giammarchi (2014-12-16T16:37:54.000Z)
d at domenic.me (2014-12-19T22:52:59.298Z)
Apologies for the probably futile extra precaution but, since someone might be confused already, I think it must be said that nobody should ever use ES6 interpolated strings like the following: ```js dom.innerHTML = `<div class="${className}"></div>`; ``` unless eventual bound references are not made safe elsewhere. In a raw template like logic, like the suggested gist, it should also, eventually, be like the following: ```js dom.innerHTML = '<div class="${className}"></div>'.template({ className: safeForHTML(className) }); ``` Still in templates, when double curly braces are in place usually means such safe HTML/sanitize operation is done automagically behind the scene avoiding repeated `safeForHTML` calls. I hope the distinction is cleaner now.