$Html1 = '<span style="color:rgb(200,38,19); background-color:rgb(255,255,0)">' . ' <b>first</b> text ' . '</span> ';
$Html2 = '<b><span style="color:rgb(200,38,19); background-color:rgb(255,255,0)">' . 'second</span></b> text ' ;
Theoretically, both variables should display text with a yellow background and bold red letters. The content of $Html1 is not displayed correctly, but $Html2. With the help of AI, classes were created that patch the current issues, allowing the expected display in the PDF.
This link download src.zip, this folder replace your src folder (version 5.3.3). The way to use is ...
$html2pdf = new \Spipu\Html2Pdf\Html2PdfPatched('P', 'A4', 'es', true, 'UTF-8', [10, 10, 10, 10], true);
It is at your discretion whether or not to adapt this solution to the project.
Theoretically, both variables should display text with a yellow background and bold red letters. The content of $Html1 is not displayed correctly, but $Html2. With the help of AI, classes were created that patch the current issues, allowing the expected display in the PDF.
This link download src.zip, this folder replace your src folder (version 5.3.3). The way to use is ...
$html2pdf = new \Spipu\Html2Pdf\Html2PdfPatched('P', 'A4', 'es', true, 'UTF-8', [10, 10, 10, 10], true);It is at your discretion whether or not to adapt this solution to the project.