friendica_2021-01/include/bb2diaspora.php
Hypolite Petovan fe5ce67ef8 Move bb2diaspora() content to Content\Text\BBCode::toMarkdown
- Use self where appropriate
- Add BaseObject extension
2018-03-04 17:34:59 -05:00

12 lines
244 B
PHP

<?php
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown;
function diaspora2bb($s) {
return Markdown::toBBCode($s);
}
function bb2diaspora($Text, $fordiaspora = true) {
return BBCode::toMarkdown($Text, $fordiaspora);
}