plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
254 stars 191 forks source link

select2 html entities over escaped in Plone 5.2.5+ #3531

Closed ewohnlich closed 2 years ago

ewohnlich commented 2 years ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

What I did: Entered a value with an ampersand into the Tags field. When creating/editing another page, I pulled up the expected values for this field.

What I expect to happen: Ampersands and other html entities are shown as opposed to "&"

What actually happened: A value of "&" instead shows as "&"

What version of Plone/ Addons I am using: I tested on https://demo.plone.org (5.2.7) and on a local build with 5.2.4 and 5.2.5.

In 5.2.4 it worked as expected. In 5.2.5 and 5.2.7 (demo.plone.org) it did not. I would guess that the version of select2 was bumped as part of the 5.2.5 release. This should affect all html entities and all instances of SelectFieldWidget in most likelihood, but it easy to test with the Tags field out of the box.

mauritsvanrees commented 2 years ago

Duplicate of https://github.com/plone/Products.CMFPlone/issues/3429