JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content">
<input type="button" value="Exportar" id="btnExport" name="content" />
<div class="LandscapeDiv" id="conteiner">
<h4>No vo relatorio financeiro</h4>
<table width="100%" class="algTop">
<tbody><tr>
<td align="left" class="titleAlteraOog" colspan="11">FINANCEIRO</td>
</tr>
<tr>
<td class="titleYear" colspan="11">2005</td>
</tr>
<tr>
<td class="titleOog">Numerario Rcb/Devolucao</td>
<td class="titleOog">Fonte</td>
<td class="titleOog">Vinc</td>
<td class="titleOog">PF</td>
<td class="titleOog">Data</td>
<td class="titleOog">Valor</td>
<td class="titleOog">Valor Atual</td>
<td class="titleOog">NC Ref</td>
<td class="titleOogAlg">Observação </td>
<td class="titleOogAlg">PF Ref N° Devolucoes</td>
<td class="titleOogAlg">PF Ref valor devolucoes</td>
</tr>
<tr>
<td class="fundo_listagens_just alg">Numerario recebido</td>
<td class="fundo_listagens_just alg">0111</td>
<td class="fundo_listagens_just alg">415</td>
<td class="fundo_listagens_just alg">1135</td>
<td class="fundo_listagens_just alg">08/dez/05</td>
<td class="fundo_listagens_just alg">7.199.998,00</td>
<td class="fundo_listagens_just alg">7.199.998,00</td>
<td class="fundo_listagens_just alg">1263 (17Nov05)</td>
<td class="fundo_listagens_just alg">-</td>
<td class="fundo_listagens_just alg">890097 (31dez07)</td>
<td class="fundo_listagens_just alg">212.250,00</td>
</tr>
<tr>
<td class="fundo_listagens_just alg">Numerario recebido</td>
<td class="fundo_listagens_just alg">0111</td>
...
JavaScript
$(document).ready(function(){
$("#btnExport").click(function(e) {
var elem = $(this).attr('name');
var data = $('#' + elem).html();
var uri = 'data:application/vnd.ms-excel;base64,'
var template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><head></head><body><table>{table}</table></body></html>';
var base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) };
var format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) };
var ctx = {worksheet: 'RELATÓRIO', table: data};
var excel = window.open(uri + base64(format(template, ctx)));
console.log(excel);
});
});