mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
bug #1717: unescape string when updating a template
This commit is contained in:
1 parent
7e22885efe
commit
bdaa630a0b
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user