fix #2 for real this time
This commit is contained in:
parent
2c2bd28a9f
commit
7c970031d0
|
@ -402,24 +402,30 @@ class frontend{
|
||||||
|
|
||||||
$text =
|
$text =
|
||||||
trim(
|
trim(
|
||||||
str_replace(
|
preg_replace(
|
||||||
[
|
'/<code [^>]+>/',
|
||||||
"<br />",
|
"",
|
||||||
" ",
|
str_replace(
|
||||||
"<pre>",
|
[
|
||||||
"</pre>"
|
"<br />",
|
||||||
],
|
" ",
|
||||||
[
|
"<pre>",
|
||||||
"\n",
|
"</pre>",
|
||||||
" ",
|
"</code>"
|
||||||
"",
|
],
|
||||||
""
|
[
|
||||||
],
|
"\n",
|
||||||
explode(
|
" ",
|
||||||
"<?php",
|
"",
|
||||||
highlight_string("<?php " . $text, true),
|
"",
|
||||||
2
|
""
|
||||||
)[1]
|
],
|
||||||
|
explode(
|
||||||
|
"<?php",
|
||||||
|
highlight_string("<?php " . $text, true),
|
||||||
|
2
|
||||||
|
)[1]
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue