Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
"targets": [0,1,2,3,4],
"render": function (data, type, row, meta) {
if ( type == 'display' ) {
- return $('<div />').text(data).html();
+ return data.escapeHtml();
}
return data;
}
});
};
+/*
+ * Void method for numbers, for consistency
+ */
+Number.prototype.escapeHtml = function() {
+ return this;
+};
+
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
$.fn.tabIndex = function () {
return $(this).parent().children('div').index(this);