bug #1717: unescape string when updating a template

This commit is contained in:
Daniel Molina committed 2013-04-23 16:13:10 +02:00
1 parent 7e22885efe
commit bdaa630a0b
1 file changed
+5 -1
+5 -1
View File
@@ -1699,6 +1699,10 @@ function loadAccounting(resource, id, graphs, options){
};
}
var unscape = function(convert){
return $("<span />", { html: convert }).text();
};
// Convert from hash to string
function convert_template_to_string(template_json,unshown_values)
{
@@ -1754,7 +1758,7 @@ function convert_template_to_string(template_json,unshown_values)
}
})
return template_str;
return unscape(template_str);
}
// Create the extended template table (with listeners)