Browse Source

Revert "Allow HTML in "updated" column titles"

This reverts commit 8241bfc9532341d64f57747f33d78ace9cb1ab38.
Aleksey Kuznietsov 1 year ago
parent
commit
fd28aa90d5
3 changed files with 3 additions and 3 deletions
  1. 1 1
      dist/bootstrap-table.js
  2. 1 1
      dist/bootstrap-table.min.js
  3. 1 1
      src/bootstrap-table.js

+ 1 - 1
dist/bootstrap-table.js

@@ -8461,7 +8461,7 @@
         if (this.columns[this.fieldsColumnsIndex[params.field]].visible) {
           this.$header.find('th[data-field]').each(function (i, el) {
             if ($$p(el).data('field') === params.field) {
-              $$p($$p(el).find('.th-inner')[0]).html(params.title);
+              $$p($$p(el).find('.th-inner')[0]).text(params.title);
               return false;
             }
           });

File diff suppressed because it is too large
+ 1 - 1
dist/bootstrap-table.min.js


+ 1 - 1
src/bootstrap-table.js

@@ -3412,7 +3412,7 @@ class BootstrapTable {
     if (this.columns[this.fieldsColumnsIndex[params.field]].visible) {
       this.$header.find('th[data-field]').each((i, el) => {
         if ($(el).data('field') === params.field) {
-          $($(el).find('.th-inner')[0]).html(params.title)
+          $($(el).find('.th-inner')[0]).text(params.title)
           return false
         }
       })