Commit 89dd87d8 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Escape vm metadata keys in vm list item views (icon/single)

parent bf44e0c6
......@@ -476,8 +476,9 @@
}
// create element
var new_el = $(this.tag_tpl.format(util.truncate(key, this.tag_key_truncate),
util.truncate(": " + _.escape(value), this.tag_value_truncate)));
var _key = _.escape(util.truncate(key, this.tag_key_truncate));
var _value = _.escape(util.truncate(": " + value, this.tag_value_truncate));
var new_el = $(this.tag_tpl.format(_key, _value));
// add title attributes, improve accesibility
// truncated values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment