Merge pull request #520 from rabuzarus/20180206_-_membersince_frio_support
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 7 Feb 2018 16:05:59 +0000 (11:05 -0500)
committerGitHub <noreply@github.com>
Wed, 7 Feb 2018 16:05:59 +0000 (11:05 -0500)
membersince: fix utf-8 encoding issues

membersince/membersince.php

index 8c42c13..01de8fd 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');