New function to convert bbcode to markdown.

This commit is contained in:
Michael Vogel 2012-06-17 19:49:05 +02:00
parent 7c2d27e275
commit 3968e77f9e
10 changed files with 2939 additions and 19 deletions

View file

@ -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']) {