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:
parent
1b2a6ff5b1
commit
35b7655bec
@ -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] ] ).'",';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user