Saxman
Saxman

Reputation: 5089

jQuery Templates does not render HTML tags

The content of my blog post contains HTML tag in it, and I'm using jQuery Templates (remote loading, following this post - http://encosia.com/2010/12/02/jquery-templates-composite-rendering-and-remote-loading/), but they did not format the text with the HTML tags, instead, the tags are displayed as plain text. What do I need to do in order for the HTML to be formatted?

Thanks.

Upvotes: 0

Views: 2034

Answers (1)

Dave Ward
Dave Ward

Reputation: 60580

You can use {{html expression}} to render unencoded HTML in templates.

http://api.jquery.com/template-tag-html

Upvotes: 2

Related Questions