Fix tag escaping

This commit is contained in:
guerler
2017-03-06 15:58:31 -05:00
parent 0d95bf43ad
commit 496f476b30
6 changed files with 6 additions and 6 deletions
@@ -132,7 +132,7 @@ var View = Backbone.View.extend({
_.each( this.data, function( option, index ) {
var filterstr = _.reduce( option.tags, function( memo, tag ) { return memo + tag + ' ' }, '' );
var filterhtml = '<div class="ui-tags">' +
_.reduce( option.tags, function( memo, tag ) { return memo + '&nbsp;<div class="label label-info">' + tag + '</div>' }, '' )
_.reduce( option.tags, function( memo, tag ) { return memo + '&nbsp;<div class="label label-info">' + _.escape( tag ) + '</div>' }, '' )
+ '</div>';
self.data2.push( { order: index, id: option.value, text: option.label, filterhtml: filterhtml, filterstr: filterstr } );
});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long