Skip to content

Commit

Permalink
use option textContent instead of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Feb 27, 2019
1 parent d2333c8 commit 39c0078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@
} else {
if (that.options.showIcon) titleOptions.optionIcon = thisData.icon;
if (that.options.showSubtext && !that.multiple) titleOptions.optionSubtext = ' ' + thisData.subtext;
titleOptions.text = option.innerHTML.trim();
titleOptions.text = option.textContent.trim();
}

titleFragment.appendChild(generateOption.text(titleOptions, true));
Expand Down

0 comments on commit 39c0078

Please sign in to comment.