If you pass html content in the template variables, you have to use format to make sure that the html content gets converted into real html elements.

See this Stack overflow post http://stackoverflow.com/questions/4570222/htmlentities-equivalent-in-jquery-template-plugin

And this documentation - http://api.jquery.com/template-tag-html/