friendica/include/bb2diaspora.php

13 lines
244 B
PHP
Raw Normal View History

<?php
use Friendica\Content\Text\BBCode;
2018-01-14 18:59:08 -05:00
use Friendica\Content\Text\Markdown;
2011-08-25 19:37:27 -04:00
function diaspora2bb($s) {
return Markdown::toBBCode($s);
2011-08-25 19:37:27 -04:00
}
function bb2diaspora($Text, $fordiaspora = true) {
return BBCode::toMarkdown($Text, $fordiaspora);
2011-09-03 10:13:12 -04:00
}