How to style title in exported pdf in datatable
<p>The code in question:</p>

<pre><code>$("#my-table").DataTable( {
            data: dataSet,
            columns: columns,
            dom: 'Bfrtip',
            buttons: [
                {
                    extend: 'excelHtml5',
                    title: 'Awesome Export',
                },
                {
                    extend: 'pdfHtml5',
                    title: 'Awesome Export',
                    orientation: 'landscape',
                    pageSize: 'LEGAL'
                }
            ]
        });
</code></pre>

<p>How can I style the title using maybe html:</p>

<pre><code>var title = '&lt;h1&gt;My title&lt;/h1&gt;&lt;br /&gt; &lt;p&gt;by John&lt;/p&gt;';

// then in the code
...
buttons: [
    {
        extend: 'excelHtml5',
        title: title
    }
]
...
</code></pre>

<p>If I try to do this it displays the html tags instead of styling it.</p>