Column text showing blank when text starts with

Column text showing blank when text starts with

user777user777 Posts: 2Questions: 1Answers: 0

var testdata = [ { "id": 1, "name": "Peppermint Hot Chocolate","type": "Chocolate Beverage", "calories": "440", "totalfat": "16g", "protein": "13g"},{ "id": 2, "name": "<html Allan","type": "Chocolate Beverage", "calories": "440", "totalfat": "16g", "protein": "13g"}];

var oTable = $('#example').dataTable( {
"aaData": testdata,
"bAutoWidth": false,
"aoColumns": [
{ "mData": "name" , "sWidth": "45%" },
{ "mData": "type","sWidth": "25%" },
{ "mData": "calories","sWidth": "10%" },
{ "mData": "totalfat" ,"sWidth": "20%"}
]
} );

check test data second array -> name : "<html Allan","
text not displaying

Answers

This discussion has been closed.