1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-20 18:54:15 +01:00

Fixed: server-side processing demo script now takes account of strings which new line characters

This commit is contained in:
Allan Jardine 2010-10-07 17:53:48 +01:00
parent 1b2a6ff5b1
commit 35b7655bec

View File

@ -163,7 +163,10 @@
else if ( $aColumns[$i] != ' ' )
{
/* General output */
$sOutput .= '"'.str_replace('"', '\"', $aRow[ $aColumns[$i] ]).'",';
$sOutput .= '"'.str_replace(
array( '"', "\n", "\r" ),
array( '\\"', "\\n", "\\n"),
$aRow[ $aColumns[$i] ] ).'",';
}
}