1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Merge pull request #4308 from beganovich/v5-fix-ampersand-breaking-pdfmaker

(v5) Support for special chars on invoices
This commit is contained in:
Benjamin Beganović 2020-11-16 00:51:16 +01:00 committed by GitHub
commit 63e05b09d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);