I am using the Forms library for Node.js (Forms), which will render a form for me on the backend as so:
var signup_form = forms.create({
username: fields
The new ejs (v2, v2.5.7) development is happening here: https://github.com/mde/ejs The old ejs (v0.5.x, 0.8.5, v1.0.0) is available here https://github.com/tj/ejs
Now with ejs you can do even more. You can use:
<%= %> (escape function configurable)<%- %>-%> ending tag<%_ _%><% %>So, in your case it is going to be <%- variable %> where variable is something like
var variable = "text here
and some more text here";
I hope this helps someone.