Final
This commit is contained in:
parent
f7d1e19ddf
commit
080acb34d4
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@
|
||||||
* @returns String, parsed/replaced template.
|
* @returns String, parsed/replaced template.
|
||||||
*/
|
*/
|
||||||
render: function(template, context) {
|
render: function(template, context) {
|
||||||
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x].replace('<', '<').replace('>', '>'));
|
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x].replace(/</g, '<').replace(/>/, '>'));
|
||||||
return template;
|
return template;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Reference in a new issue