Open mikeerickson opened 2 years ago
Your output wouldn't include the angular brackets in the first place since the only brackets there are part of the EJS tag, so I don't think EJS is what's causing your problems here.
Are you trying to create html tags called Mike on the fly? Because you could probably do something like
ejs.render('<%- ``\<${myVar}>`` %>', { myVar: 'mike' });
for that.
Otherwise you'll want them escaped.
In short, I have the following
When the template is rendered, it is escaping the
<
and>
charactersI am expect output to be
What should I be doing to make sure the
<
and>
are actually rendered