Skip to content Skip to sidebar Skip to footer

Ejs Doesn't Escape Characters

I have a Node JS server querying MongoDB, and then render the returns to an EJS template: res.render('graphFabric.ejs', {'iBeacons':[(beacon)]});. When I try to recover the JSON fr

Solution 1:

Figured from https://github.com/tj/ejs/tree/0.8.3#features that I was using:
Escapes html by default with <%= code %> when I should have used
Unescaped buffering with <%- code %>
**Replacing = with - fixed the problem


Post a Comment for "Ejs Doesn't Escape Characters"