PaulV888
Member
Hi,
So I was trying to retrieve records in a calc element, based on a value in a placeholder. Whenever the placeholder has a special html character in it, my select failed. I could not find where this happens, and you guys may have a good reason for doing it.
This is my value in my table:
And when I execute this code (calc element):
So somewhere it gets encoded. Doing a decode is an easy workaround for me, however if that is the solution we should add it to the wiki. Took me 5hrs to figure it out
Paul
Fabrik 3.4.3
So I was trying to retrieve records in a calc element, based on a value in a placeholder. Whenever the placeholder has a special html character in it, my select failed. I could not find where this happens, and you guys may have a good reason for doing it.
This is my value in my table:
company length(`Company`)
A&B 3
And when I execute this code (calc element):
Code:
$str ="{mc_staging_ms___Company}";
var_dump($str);
$str = html_entity_decode($str);
var_dump($str);
The output is:
string(7) "A&B"
string(3) "A&B"
So somewhere it gets encoded. Doing a decode is an easy workaround for me, however if that is the solution we should add it to the wiki. Took me 5hrs to figure it out
Paul
Fabrik 3.4.3
Last edited: