javascript - What are the benefits of using <%- tag v/s <%= tag in ejs? -


when should 1 use <%- tag? since <%- unescaped, wouldnt leave application vulnerable attacks?

you'd use when have trusted html in variable.

for example, if run chunk of data through markdown parser generate html.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -