Hi,
I just renew my license yesterday 🙂
So I configured some information in grid with color with HTML code, when I export it in PDF file, I get visible HTML code in the PDF. Is it possible to do a strip_tags before exportation ?
Thanks for your reply.
Here is sample solution code for your case that removes html tags in pdf.
Thanks for your reply Abu,
I'm not sure to understand. Do you mean to use the function set_pdf_format() ?
There is methods for the pdf format $pdf, but I don't see method for $data.
Thanks for precision.
You only need to set following with html tag column.
$col["on_data_display"] = array("display_comp","");
function display_comp($data)
{
if (isset($_GET["export"]))
return $data["company"];
else
return "<font color='red'>".$data["company"]."</font>";
}
If function callback, i've skipped html tags if GET array has export variable.