Browse Source

Remove anonymous function, 5.2 is still minimal requirement

pull/2072/head
Fabrixxm 7 years ago
parent
commit
fa4ee05312
  1. 6
      include/html2bbcode.php

6
include/html2bbcode.php

@ -90,9 +90,11 @@ function html2bbcode($message)
$message = str_replace("\r", "", $message);
$message = preg_replace_callback("|<pre><code>([^<]*)</code></pre>|ism", function($m) {
function _replace_code_cb($m){
return "<code>".str_replace("\n","<br>\n",$m[1]). "</code>";
}, $message);
}
$message = preg_replace_callback("|<pre><code>([^<]*)</code></pre>|ism", "_replace_code_cb", $message);
$message = str_replace(array(
"<li><p>",

Loading…
Cancel
Save