mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
try and get unadulterated bb2md2html2bb for simple stuff, then we'll work up to harder stuff
This commit is contained in:
parent
a9c65dfe27
commit
315784444a
4 changed files with 10 additions and 6 deletions
|
@ -124,7 +124,7 @@ function html2bbcode($message)
|
|||
$node->nodeValue = str_replace("\n", "\r", $node->nodeValue);
|
||||
|
||||
$message = $doc->saveHTML();
|
||||
$message = str_replace(array("\n<", ">\n", "\r", "\n", "\xC3\x82\xC2\xA0"), array("<", ">", "<br>", " ", ""), $message);
|
||||
$message = str_replace(array("\n<", ">\n", "\r", "\n", "\xC3\x82\xC2\xA0"), array("<", ">", "<br />", " ", ""), $message);
|
||||
$message = preg_replace('= [\s]*=i', " ", $message);
|
||||
@$doc->loadHTML($message);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue