ソースを参照

Fixes #1051 where HTML chars hown in filter-control select

Removes HTML characters from appearing in SELECT dropdowns.
Troy Morehouse 10 年 前
コミット
66b97db4c6

+ 1 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -66,7 +66,7 @@
         if (existsOptionInSelectControl(selectControl, value)) {
             selectControl.append($("<option></option>")
                 .attr("value", value)
-                .text(text));
+                .text($('<div />').html(text).text()));
         }
     };