Closed agrobens closed 1 year ago
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?
Ignore, erro is caused from other script
In my code:
The result is:
Why EJS compile text auto converting \n in
?
How to I disable?