* Description: Display membership date in profile
* Version: 1.1
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
- *
+ * Status: Unsupported
*/
use Friendica\Core\Addon;
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');
$div->appendChild($hr);
$div->appendChild($label);
$div->appendChild($entry);
- $elm->parentNode->appendChild($div);
+ $elm->parentNode->insertBefore($div, $elm->nextSibling);
$b = $doc->saveHTML();
} else {