This commit is contained in:
Ryan McGrath 2011-06-23 03:02:10 +09:00
parent c619e27607
commit 6841a5e5d8
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@
* @returns String, parsed/replaced template.
*/
render: function(template, context) {
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x]);
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x].replace('<', '&lt;').replace('>', '&gt;'));
return template;
}
};