function($, _, Humanize) {
var interface = {};
var ft = {};
-
+ var htmlEscapes = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": ''',
+ '/': '/'
+ };
+ var htmlEscaper = /[&<>"'\/]/g;
+
+ EscapeHTML = function(string) {
+ return ('' + string).replace(htmlEscaper, function(match) {
+ return htmlEscapes[match];
+ });
+ };
+
function unix_time_format(tm) {
var date = new Date(tm ? tm * 1000 : 0);
return date.toLocaleString();
"font-size": "11px",
"word-break": "break-all",
"minWidth": 150
- }
+ },
+ "formatter": EscapeHTML
}, {
"name": "action",
"title": "Action",