浏览代码

Removed duplicated escaping of the column value

Dustin Utecht 3 年之前
父节点
当前提交
b2726fb220
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/bootstrap-table.js

+ 1 - 5
src/bootstrap-table.js

@@ -1519,7 +1519,7 @@ class BootstrapTable {
     this.header.fields.forEach((field, j) => {
       const column = this.columns[j]
       let text = ''
-      let value_ = Utils.getItemField(item, field, this.options.escape, column.escape)
+      const value_ = Utils.getItemField(item, field, this.options.escape, column.escape)
       let value = ''
       let type = ''
       let cellStyle = {}
@@ -1546,10 +1546,6 @@ class BootstrapTable {
         return
       }
 
-      if (column.escape) {
-        value_ = Utils.escapeHTML(value_)
-      }
-
       // Style concat
       if (csses.concat([this.header.styles[j]]).length) {
         styleToAdd_ += `${csses.concat([this.header.styles[j]]).join('; ')}`