I am using a custom code in one of my fields. It works fine except for when it is exported as a CSV file. The output basically includes the code.
Example is cited below.
I am using v4.2 build 379.
Custom Code:
$str = "<font color=";
if (($value < $data['QuantityShipped']) && ($value <> 0)){
$str.="red";
}
elseif ($value == 0){
$str.="green";
}
$str.=">".$value."</font>";
$value=$str;
CSV output field:
<font color=red>5</font>