Reputation: 5487
I am setting a variable to the current user being logged in but am receiving output back with escaped single quotation marks. Is there a way to prevent this escaping?
window.bootstrappedUserObject = <%= bootstrappedUser %>
Currently evaluates to
firstname: 'Rob',
Upvotes: 0
Views: 145
Reputation: 106696
See the features list for ejs. By default you can use <%- bootstrappedUser %>
for unescaped buffering.
Upvotes: 1