Skip to content

Commit 088ae3c

Browse files
authored
Update Html.php
1 parent 32dd712 commit 088ae3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Shared/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static function addHtml($element, $html, $fullHTML = false, $preserveWhit
9797
}
9898

9999
if (substr($html, 0, 2) === "\xfe\xff" || substr($html, 0, 2) === "\xff\xfe") {
100-
$html = mb_convert_encoding($html, 'UTF-8', 'UTF-16');
100+
$html = (string) mb_convert_encoding($html, 'UTF-8', 'UTF-16');
101101
}
102102
if (substr($html, 0, 3) === "\xEF\xBB\xBF") {
103103
$html = substr($html, 3);

0 commit comments

Comments
 (0)