I have the following template:
<a href="{{test_url}}>Test</a>
But it doesn’t work, instead the {{}} becomes html encoded in the output.
How do I prevent this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are using the default templating engine that comes with Backbone.js (which actually comes from Underscore.js), then the syntax would be:
Assuming that
test_urlexists in the data object you are passing to the template. Also, make sure that you are passing a plain old JS object (this.model.toJSON()) to the template function or else the resolution won’t happen.If it turns out you are using a different templating engine, please let us know what engine it is AND provide us with the view code that is rendering the template.