Pipalayan Nayak
unread,May 1, 2012, 1:08:30 AM5/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JavaScript Templates Engine PURE
Hi,
I am new to pure.js . When rendering with pure.js, i find that pure.js
does not HTML escape values. Is it the correct way, or am i missing
something?
code example
var tab_li_directive = {
'ul li':{
'tb<-tabList':{
'span':"tb.tabName',
'@id':function(a) {
return "tinid-" + a.item.tabId;
},
'@class':function(a) {
if (a.pos == 0)
return "tab-class tab-selected";
else
return "tab-class";
}
}
}
}
$('.fbbodydiv-class #tab-div').render(R$.fbPgTab.v.fbPageDtls,
tab_li_directive);
Here, since the tabName is directly rendered into the span, i think it
should be HTML escaped.
Regards.