Skip to content

Commit

Permalink
Fix code scanning alert #20: DOM text reinterpreted as HTML
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent fbcda1a commit 494b71c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
console.log("Voucher resgatado com sucesso");

// Exibe o tipo de voucher resgatado pelo voluntário
txtResgateVoucher.innerHTML = `<small class="opacity-50 m-0 px-4">Voucher resgatado: ${tipoVoucherDoVoluntario}</small>`;
const smallElement = document.createElement('small');
smallElement.className = 'opacity-50 m-0 px-4';
smallElement.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
txtResgateVoucher.appendChild(smallElement);
bloquearResgateVoucher();
}).catch((erro) => {
console.error("Erro ao resgatar voucher: ", erro);
Expand Down

0 comments on commit 494b71c

Please sign in to comment.