Browse code

Make sure that label DOM ist treated as utf-8

Benjamin Roth authored on20/01/2023 14:56:36
Showing1 changed files
... ...
@@ -32,7 +32,7 @@ class FormFieldChildRecordListener
32 32
         }
33 33
 
34 34
         $entry = new \DOMDocument();
35
-        $entry->loadHTML($buffer);
35
+        $entry->loadHTML('<?xml encoding="utf-8" ?>' . $buffer);
36 36
         $finder = new \DomXPath($entry);
37 37
 
38 38
         $cteLabel = $finder->query("//*[contains(concat(' ', normalize-space(@class), ' '), ' cte_type ')]");