Export data from datable to Excel?

I'm trying to export data from datatable to excel. I have anchor tag in column
and it comes as text in excel. Please check my code below

$ (& # 39; # tableQnAs & # 39;). DataTable ({
dom: & # 39; bfrtip & # 39 ;,
keys: [
        'copy', 'excel', 'print'
    ],
columnDefs:[
{
Goals: 1,
Render: function (data, type, line) {
if (type === & # 39; display & # 39;) {
data = & # 39;& # 39; + data + & # 39;& # 39 ;;
}
Return data;
}
}
]});