mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
New function to convert bbcode to markdown.
This commit is contained in:
parent
7c2d27e275
commit
3968e77f9e
10 changed files with 2939 additions and 19 deletions
|
@ -2060,12 +2060,12 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) {
|
|||
$images[] = $detail;
|
||||
$body = str_replace($detail['str'],$mtch[1],$body);
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
$body = xmlify(html_entity_decode(bb2diaspora($body)));
|
||||
|
||||
if(strlen($title))
|
||||
$body = xmlify('**' . html_entity_decode($title) . '**' . "\n") . $body;
|
||||
$body = "[b]".html_entity_decode($title)."[/b]\n\n".$body;
|
||||
|
||||
$body = xmlify(html_entity_decode(bb2diaspora($body)));
|
||||
|
||||
|
||||
if($item['attach']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue