EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
htmlizer: apply encoding before manipulating dom
Yuri Kuznetsov59c06302a1af
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.phpindex b41b316912..47df79ca9d 100644--- a/application/Espo/Core/Htmlizer/Htmlizer.php+++ b/application/Espo/Core/Htmlizer/Htmlizer.php@@ -929,6 +929,8 @@ class Htmlizer$xml = new DOMDocument();+ $template = "<!DOCTYPE html><meta charset=\"UTF-8\">" . $template;+$loadResult = $xml->loadHTML($template);if ($loadResult === false) {