jTemplates: html in variables
I'd lik开发者_StackOverflow中文版e to include some html in a jTemplate variable - e.g.
<td class="numeric">{$T.total_price}</td>
Where total_price is:
"$12<span>.00</span>"
Is there any way I can get the span to show up as html?
I got it with:
$('#mhid')setTemplate(s, [], {filter_data: false});
I am having the same problem:
Template:
<textarea id="pagination" style="display:none"><b>pagination</b></textarea>
If I call the template as:
$('').setTemplate($('pagination').html(),[],{filter_data: false});
$('').processTemplate();
Its not working. its displaying as:
<b>pagination</b>
If I call the same template by using setTemplateElement like:
$('').setTemplateElement('pagination');
$('').processTemplate();
Its working. its displaying as: pagination
精彩评论