Skip to content

Commit

Permalink
Improve text view rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 13, 2018
1 parent cc5fbab commit b743034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/textview/theme/public/text_view.js
Expand Up @@ -64,7 +64,7 @@ ckan.module('text_view', function (jQuery, _) {
highlighted = '<pre>' + data + '</pre>';
}

self.el.html(highlighted);
self.el[0].innerHTML = highlighted;
},
error: function(jqXHR, textStatus, errorThrown) {
if (textStatus == 'error' && jqXHR.responseText.length) {
Expand Down

0 comments on commit b743034

Please sign in to comment.