table.row().data() - data with commas and special chars
table.row().data() - data with commas and special chars
I have data in my database with commas. How can I escape or quote values when I do row().data()?
$('#example tbody').on('click', 'tr', function () {
var data = table.row( this ).data();
alert( data );
} );
Instead of recieving this:
14,Landim e Filhos, Lda - Consultorio Medico,Iolanda Landim,Plateau,,City,Zone,Country,261-20-22,991-80-60,,email@hotmail.com,,2004563132
Recieve this
"14","Landim e Filhos, Lda - Consultorio Medico","Iolanda Landim","Plateau","","City","Zone","Country","261-20-22","991-80-60","","email@hotmail.com","","2004563132"