This topic is locked

Can it export standard double quotes?

11/21/2006 12:41:53 PM
PHPRunner General questions
sol_knar author

Hello,

When I export to CSV I would like to either 1.) have the " in the data of each field export as regular " not HTML Quotes or 2.) Strip the " from the data.

Is this possible?

Thanks,

William

J
Jane 11/22/2006

William,
to show double quotes instead of HTML code open generated ..._export.php file, find ExportToCSV() function, locate following code snippet:

$outstr.='"'.htmlspecialchars(GetData($row,"FieldName",$format)).'"';



and replace it with this one:

$outstr.='"'.GetData($row,"FieldName",$format).'"';



where FieldName is your actual field name.
Also you can remove double quotes before and after value:

$outstr.=' '.GetData($row,"FieldName",$format).' ';

sol_knar author 11/22/2006

Perfect.

The support is really great on the forums. Reminds me why I am so happy with your software.

Thank you,

William