mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
fe5ce67ef8
- Use self where appropriate - Add BaseObject extension
12 lines
244 B
PHP
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);
|
|
}
|