diff --git a/src/Module/Api/Mastodon/Instance/Rules.php b/src/Module/Api/Mastodon/Instance/Rules.php index fa5d6d8b60..9b7d2dc77f 100644 --- a/src/Module/Api/Mastodon/Instance/Rules.php +++ b/src/Module/Api/Mastodon/Instance/Rules.php @@ -40,10 +40,11 @@ class Rules extends BaseApi public static function rawContent(array $parameters = []) { $rules = []; - $id = 0; + $id = 0; if (DI::config()->get('system', 'tosdisplay')) { $html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL); + $msg = HTML::toPlaintext($html, 0, true); foreach (explode("\n", $msg) as $line) { $line = trim($line);