X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fhtml2bbcode.php;h=28e251aee4e82425a0fd0c88574558c43f701dd7;hb=85875fc07f9a859d0796adc48bc124c489a486dc;hp=736150134000cc6424812c7e12a6f74c84e39a76;hpb=a552845d8f49ca9904a78dffe37b89c8df4cff29;p=friendica.git
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 7361501340..28e251aee4 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -85,15 +85,15 @@ function deletenode(&$doc, $node)
$child->parentNode->removeChild($child);
}}
+function _replace_code_cb($m){
+ return "".str_replace("\n","
";
+}
+
function html2bbcode($message)
{
$message = str_replace("\r", "", $message);
- function _replace_code_cb($m){
- return "
\n",$m[1]). "".str_replace("\n","
";
- }
-
$message = preg_replace_callback("|
\n",$m[1]). "
([^<]*)
|ism", "_replace_code_cb", $message);
$message = str_replace(array(