Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Steps to reproduce
1. Add a form with a field type of DropDownList.
2. Set the prevalue type to standard.
3. Add an item with a special character such as & or <.
Problem
When viewing a page that contains the form, items in the DropDownList are double-encoded. E.g. "this & that" becomes "this & that".
Am I doing something wrong or is this a bug?
I can work around it for now by creating a custom field type that escapes the prevalue.
Comment author was deleted
Thanks for reporting this, it definitely sounds like a bug. I'll log this in our issue tracker and hopefully it will be gone in the next maintenance release.
/tim
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
HTML encoding issue with DropDownList and standard prevalue type
Steps to reproduce
1. Add a form with a field type of DropDownList.
2. Set the prevalue type to standard.
3. Add an item with a special character such as & or <.
Problem
When viewing a page that contains the form, items in the DropDownList are double-encoded. E.g. "this & that" becomes "this & that".
Am I doing something wrong or is this a bug?
I can work around it for now by creating a custom field type that escapes the prevalue.
Comment author was deleted
Thanks for reporting this, it definitely sounds like a bug. I'll log this in our issue tracker and hopefully it will be gone in the next maintenance release.
/tim
is working on a reply...