Skip to content

Commit

Permalink
Merge pull request ckan#2961 from ckan/2923-recline-headers
Browse files Browse the repository at this point in the history
[ckan#2923] Proper sanitation of header name on SlickGrid view
  • Loading branch information
wardi committed Apr 19, 2016
2 parents e063b0d + caaadd1 commit ae2eaa3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ckanext/reclineview/theme/public/vendor/recline/recline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3222,13 +3222,7 @@ my.SlickGrid = Backbone.View.extend({
}

function sanitizeFieldName(name) {
var sanitized;
try{
sanitized = $(name).text();
} catch(e) {
sanitized = '';
}
return (name !== sanitized && sanitized !== '') ? sanitized : name;
return $('<div>').text(name).html();
}

_.each(this.model.fields.toJSON(),function(field){
Expand Down

0 comments on commit ae2eaa3

Please sign in to comment.