Merge pull request #157 from marceldegraaf/master

Fixes issue #151
This commit is contained in:
Rashid Khan 2013-06-11 10:55:19 -07:00
commit 0803ed1baa

View File

@ -269,7 +269,7 @@ angular.module('kibana.table', [])
})
.filter('highlight', function() {
return function(text) {
if (text.toString().length > 0 && !_.isUndefined(text) && !_.isNull(text)) {
if (!_.isUndefined(text) && !_.isNull(text) && text.toString().length > 0) {
return text.toString().
replace(/&/g, '&').
replace(/</g, '&lt;').