fe5ce67ef8
- Use self where appropriate - Add BaseObject extension
13 lines
244 B
PHP
13 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);
|
|
}
|