why I get two quote characters in my PDF?

  Kiến thức lập trình

I generate pdfs with api2pdf

I see two quote characters before my table
enter image description here

How can I remove this and why it comes ?

code:

    const d = await clientPDF.chromeHtmlToPdf(`
      <h1>Stundenzettel</h1>

      <section>
        <p>Name: james test</p>
        <p>Zeitraum: 3 2024</p>
        <p>Gesamtstunden: 80</p>
      </section>

      <table id="customers">
        <tr>
          <th>Datum</th>
          <th>Auftrag</th>
          <th>Beginn</th>
          <th>Ende</th>
          <th>Pause</th>
          <th>Gesamt</th>
        </tr>
          ${ calculateAllPauseTimesArrayToMinutes.map((el => (
            `
            <tr>
            <td>${format(el.start_time, 'PP', {  locale: de } )}</td>
            <td class="text-ellips">${el.location_name ?? '/'}</td>
            <td>${format(el.start_time, 'p', {  locale: de } )}</td>
            <td>${format(el.end_time, 'p', {  locale: de } )}</td>
            <td>${el.pause_times.length > 0 ? el.pause_times.reduce((a, b) => a + b, 0) : '/'}</td>
            <td>${parseFloat((differenceInMinutes(el.end_time, el.start_time) / 60).toFixed(2))}</td></tr>`
          )))
          }
      </table>
      `, { options: options });

I removed the spaces in my tr td where I map it but it also not going away. Idk why it comes I hope anyone can give me the answer where the problem is

LEAVE A COMMENT