Values with ampersand (' & ') appear as (' & ') in select list

Created on 10 May 2021, over 3 years ago
Updated 26 April 2024, 7 months ago

Problem/Motivation

The html select list created by views_selective_filters seems to encode the ampersand (' & ') character in the select option label so it displays (' & '). The field's option value (as opposed to the viewable label) correctly contains the single ampersand (' & ') .

Steps to reproduce

Add a views_selective_filter for any field in which the text string contains an ampersand (' & ') character. The resulting html select options value contains the single ampersand (' & '), however the drop-down label is displayed as (' & ') .

Example of what I see:

<select  ...>
<option value="INTERPRETATIONS & TECH ADVICE">INTERPRETATIONS &amp; TECH ADVICE</option>
</select>

Is there a way to use the ampersand character in a field value and have it appear correctly in the filter drop-down list exposed to the end-user?

🐛 Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

🇺🇸United States PaEricksonWaTech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024