forked from lolcat/4get
fix #2 for real this time
This commit is contained in:
parent
2c2bd28a9f
commit
7c970031d0
|
@ -402,17 +402,22 @@ class frontend{
|
||||||
|
|
||||||
$text =
|
$text =
|
||||||
trim(
|
trim(
|
||||||
|
preg_replace(
|
||||||
|
'/<code [^>]+>/',
|
||||||
|
"",
|
||||||
str_replace(
|
str_replace(
|
||||||
[
|
[
|
||||||
"<br />",
|
"<br />",
|
||||||
" ",
|
" ",
|
||||||
"<pre>",
|
"<pre>",
|
||||||
"</pre>"
|
"</pre>",
|
||||||
|
"</code>"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"\n",
|
"\n",
|
||||||
" ",
|
" ",
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
explode(
|
explode(
|
||||||
|
@ -421,6 +426,7 @@ class frontend{
|
||||||
2
|
2
|
||||||
)[1]
|
)[1]
|
||||||
)
|
)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// replace colors
|
// replace colors
|
||||||
|
|
Loading…
Reference in New Issue