javascript: I want to download, copy and print the HTML contents of the grid. From the following code, I can only download the data shown in the grid

$ (& # 39; # tableQnAs & # 39;). dataTable (

                {

Sun: & # 39; Bfrtip & # 39 ;,
buttons: [
                   'copy', 'excelHtml5', 'print',

        ],

For example, in the grid I am using the anchor tag where the text appears as "Please click" on the grid that is being downloaded, but the content of the anchor tag or the full anchor tag is required to download , copy and print