AuraQ / BootstrapMultiSelectForMendix

Multi select dropdown control for Mendix
Apache License 2.0
0 stars 7 forks source link

Issue with ampersands (&) in labels of dropdown select values #2

Closed Crow74 closed 9 years ago

Crow74 commented 9 years ago

I have noticed that when a display attribute value of the queried reference set contains an ampersand (&), the dropdown list shows the ampersand in the browser as "& amp ;".

So a selectable value of "Psyche & Brain" ends up in the dropdown as "Psyche & amp ; Brain".

Note: I had to write "& amp ;" in this comment with spaces between "&", "amp" and ";" because Github converts it to an ampersand when writing this string without spaces. :grimacing:

lindski commented 9 years ago

The option labels were being escaped incorrectly... I have removed this in commit 304216728e796fca73aea04d829cbecd2123af0f

Test project contains a new test for special characters or you can take the new mpk in the dist folder to test this in your own app