While using SelectFieldWidget, a value containing an ampersand is converted to:
Plone &amp; Python
in the select2
<select> element of my field, displaying as "Plone & Python"
The value is displayed correctly when using an AjaxSelectFieldWidget (which I use elsewhere but not appropriate in this situation).
I checked in plone.app.z3cform.widgets.SelectWidget
makeItem() and the
item['content'] value which gets passed to widget.pt is "Plone & Python"
After some hours of diving down the template rabbitholes in plone.app.z3cform plone.z3cform, z3c.form and plone.app.widgets I got thoroughly confused and not any closer to solving my issue.
Can any of you provide some insights?