I cannot properly assign HTML using jQuery.tmpl (). If I pass the value of something as an html tag, it is displayed as since it is instead of the HTML tags displayed on the page
<div id="window"> <script id="lines" type="text/x-jquery-tmpl"> <div id="${id}" class="line ${type}"><span>${name}</span>: ${body}</div> </script> </div> var line = { name: 'John', body: '<strong>hello</strong> }; $('#lines').tmpl(line).appendTo('#window');
source share