diff --git a/src/PhpWord/Shared/Html.php b/src/PhpWord/Shared/Html.php index 8abfea2fd7..75e1307098 100644 --- a/src/PhpWord/Shared/Html.php +++ b/src/PhpWord/Shared/Html.php @@ -44,7 +44,7 @@ public static function addHtml($element, $html, $fullHTML = false) // Preprocess: remove all line ends, decode HTML entity, and add body tag for HTML fragments $html = str_replace(array("\n", "\r"), '', $html); - $html = html_entity_decode($html); + $html = html_entity_decode($html, null, 'UTF-8'); if ($fullHTML === false) { $html = '
' . $html . ''; }