Changes for encode/decode of custom templates

This commit is contained in:
David Bomba 2025-01-16 08:32:56 +11:00
parent b705fb4919
commit 7a0bd06cbe
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ trait PdfMakerUtilities
$document = new DOMDocument();
$document->validateOnParse = true;
// @$document->loadHTML(mb_convert_encoding($this->design->html(), 'HTML-ENTITIES', 'UTF-8'));
@$document->loadHTML(htmlspecialchars_decode(htmlspecialchars($this->design->html(), ENT_QUOTES, 'UTF-8')));
@$document->loadHTML(mb_convert_encoding($this->design->html(), 'HTML-ENTITIES', 'UTF-8'));
// @$document->loadHTML(htmlspecialchars_decode(htmlspecialchars($this->design->html(), ENT_QUOTES, 'UTF-8')));
$this->document = $document;
$this->xpath = new DOMXPath($document);