membersince: fix utf-8 encoding issues
[friendica-addons.git] / membersince / membersince.php
index 8c42c1359b1e036c70c0a740f41b8706c51854a9..01de8fd428e9f79ddc10ea60fc5a5298cbe37a1a 100644 (file)
@@ -26,7 +26,7 @@ function membersince_display(&$a, &$b)
        if (current_theme() == 'frio') {
                // Works in Frio.
                $doc = new DOMDocument();
-               $doc->loadHTML($b);
+               $doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
 
                $elm = $doc->getElementById('aprofile-fullname');