<%-%> auto converting \n in <br>
agrobens opened this issue · comments
AgroBens commented
In my code:
<script type="text/html" id="templatePreviewWhastapp">
<p>Hello</p>
<p><%-message%></p>
</script>
var templatePreviewWhastapp = $('#templatePreviewWhastapp').html();
ejs.render(templatePreviewWhastapp, {message: "Wellcome\nJustin"});
The result is:
<p>Hello</p>
<p>Wellcome<br/>Justin</p>
Why EJS compile text auto converting \n in
?
How to I disable?
AgroBens commented
Ignore, erro is caused from other script