javascript - How to pass html in jquery datatables row add function -
following way im adding rows in jquery datatables angular reviewmanger.getunapprovedreviews().then(function (data) { if (data != null) { var result = reviews.common.makevalidjson(data); if (result != null) { $scope.reviews = result; var table = $("#editable"); var tp = table.datatable(); (var = 0; < $scope.reviews.length; i++) { tp.row.add([ $scope.reviews[i].id, $scope.reviews[i].addedon, $scope.reviews[i].company.name, $scope.reviews[i].user.name, $scope.reviews[i].description, $sce.trustashtml("<span ng-click='enabledisable(" + $scope.reviews[i].id + ")>change</span>") ]).draw(); } } } }, function (error) { }); the problem i dont see rendered html in last column of rows in jquery data ...