From f9b55dcd72ee4d55d771af9620f7a00c24c1e0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 16 Nov 2020 00:49:44 +0100 Subject: [PATCH] fix pdfmaker issues with special chars --- app/Services/PdfMaker/PdfMakerUtilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PdfMaker/PdfMakerUtilities.php b/app/Services/PdfMaker/PdfMakerUtilities.php index 484ac181d6..dec845fc6a 100644 --- a/app/Services/PdfMaker/PdfMakerUtilities.php +++ b/app/Services/PdfMaker/PdfMakerUtilities.php @@ -140,7 +140,7 @@ trait PdfMakerUtilities // .. in case string doesn't contain any HTML, we'll just return // raw $content. - $_child = $this->document->createElement($child['element'], isset($child['content']) ? $child['content'] : ''); + $_child = $this->document->createElement($child['element'], isset($child['content']) ? htmlspecialchars($child['content']) : ''); } $element->appendChild($_child);