Use server side processing to accomplish what you asked, but Why would you add html to your ajax response? You can play with your response ajax and add all your html tags using datatables column dict.