Data binder turning & in " html entity name into the ampersand entity name of &

Wappler Version : 3.9.4
Operating System : 10.15.6
Server Model: PHP
Database Type: MySQL
Hosting Type: Custom (AMPPS)

Expected behavior

What do you think should happen?

When using a double quote " in the dynamic data picker and clicking on the “Select” button, the double quote gets changed to the proper html entity name for a double quote.

Actual behavior

What actually happens?

It changes the doubles quotes into the ampersand html entity prepended to the double quote html entity name.
It appears that it is changing it to the proper entity but then changing the & into it’s html entity name.
I have to go into the code and manually remove the extra amp; in order for the function to work.

How to reproduce

Add a dynamic Inner HTML attribute and put something that has double quotes in it in the code mode and click the “Select” button to save it. In this case I’m checking for a query parameter and changing the icon depending on if it’s set or not. It works great if I remember to go remove the extra amp;
Screen Shot 2021-04-12 at 2.08.49 PM

After clicking the “Select” button. - Code View
Screen Shot 2021-04-12 at 2.09.28 PM

Fixed in Wappler 3.9.5

1 Like

This topic was automatically closed after 28 hours. New replies are no longer allowed.