I am using Flask, WTForms and Backbone.js to create my app. I am working with Backbonejs for first time.
I have created a Backbone js template to display data and its corresponding form.
<%= my_field1 %>
<%= my_field2 %>
<form>
<input type="text" value="<%= my_field1 %>"/>
<input type="text" value="<%= my_field2 %>"/>
</form>
I am using WTForms and Jinja2 to render my form. To give initial value I am doing this
{{ field1(value="<%= my_field1 %>") | safe }}
{{ field1(value="<%= my_field1 %>") | safe }}
This is a source of problem as <% is escaped while rendering. How can I stop wtforms/jinja from escaping this?