Changes for encode/decode of custom templates
This commit is contained in:
parent
b705fb4919
commit
7a0bd06cbe
|
|
@ -22,8 +22,8 @@ trait PdfMakerUtilities
|
||||||
$document = new DOMDocument();
|
$document = new DOMDocument();
|
||||||
|
|
||||||
$document->validateOnParse = true;
|
$document->validateOnParse = true;
|
||||||
// @$document->loadHTML(mb_convert_encoding($this->design->html(), 'HTML-ENTITIES', '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')));
|
// @$document->loadHTML(htmlspecialchars_decode(htmlspecialchars($this->design->html(), ENT_QUOTES, 'UTF-8')));
|
||||||
|
|
||||||
$this->document = $document;
|
$this->document = $document;
|
||||||
$this->xpath = new DOMXPath($document);
|
$this->xpath = new DOMXPath($document);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue