This commit is contained in:
Benjamin Beganović 2021-04-09 13:11:28 +02:00
parent 7799b34346
commit d44691c613

View File

@ -137,7 +137,7 @@ trait PdfMakerUtilities
$_child = $this->document->createElement($child['element'], ''); $_child = $this->document->createElement($child['element'], '');
$_child->setAttribute('data-state', 'encoded-html'); $_child->setAttribute('data-state', 'encoded-html');
$_child->nodeValue = $child['content']; $_child->nodeValue = htmlspecialchars($child['content']);
} else { } else {
// .. in case string doesn't contain any HTML, we'll just return // .. in case string doesn't contain any HTML, we'll just return
// raw $content. // raw $content.