I am trying to render some fields before exporting to excel in my function I am doing like this;
"tableTools": {
"sSwfPath": "assets/global/plugins/data-tables/tabletools/swf/copy_csv_xls_pdf.swf",
"aButtons": [ {
"sExtends": "xls",
"sButtonText": "Excel",
"fnCellRender":function(sValue,iColumn,nTr,iDataIndex){
console.log(sValue);
//console.log($(sValue));
return sValue;
}
}, {
"sExtends": "print",
"sButtonText": lang.L_PRINT,
"sInfo": lang.L_PRINT_DESC,
"sMessage": "Metrics"
}]
}
So when I uncomment
console.log($(sValue));
it returns just first and second column which doesn't include any html tag inside. But when it finds a value that have html tag it stops.
ex - this gets the valu
<td class=" sorting_1">201408</td>
this doesn't
<span style="text-align:right;display:block;width:100%">121.25</span>
How can I fix it ?