While trying to get Chosen to work on a dropdown facet, I was seeing HTML inside of SELECT OPTION like:

<option value="/hearings?f[0]=hearing_bill_type_number%3AAB120">

<!-- THEME DEBUG -->
<!-- THEME HOOK: 'facets_result_item' -->
<!-- BEGIN OUTPUT from 'modules/facets/templates/facets-result-item.html.twig' -->
<span class="facet-item__value">AB120</span>
<span class="facet-item__count">(3)</span>

<!-- END OUTPUT from 'modules/facets/templates/facets-result-item.html.twig' -->

</option>

This breaks Chosen's search features and is probably invalid markup for an <OPTION> tag

CommentFileSizeAuthor
#2 dropdown-html-2815269-2.patch409 byteskducharm

Comments

kducharm created an issue. See original summary.

kducharm’s picture

StatusFileSize
new409 bytes
kducharm’s picture

Status: Active » Needs review
borisson_’s picture

Status: Needs review » Reviewed & tested by the community

  • StryKaizer committed 970450b on 8.x-1.x authored by kducharm
    Issue #2815269 by kducharm: Dropdown does not remove HTML when creating...
strykaizer’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting and patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.