Skip to content

Commit

Permalink
feat(dropdown,search): respect preserveHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Feb 11, 2024
1 parent f149f6f commit 4204257
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,9 @@
var $result = $(result),
markedHTML = module.get.choiceText($result, true)
;
if (!settings.preserveHTML) {
markedHTML = module.escape.htmlEntities(markedHTML);
}
if (settings.ignoreDiacritics) {
markedHTML = markedHTML.normalize('NFD');
}
Expand Down

0 comments on commit 4204257

Please sign in to comment.