@@ -402,24 +402,30 @@ class frontend{
$text =
trim(
- str_replace(
- [
- "<br />",
- " ",
- "<pre>",
- "</pre>"
- ],
- "\n",
- " ",
- "",
- ""
- explode(
- "<?php",
- highlight_string("<?php " . $text, true),
- 2
- )[1]
+ preg_replace(
+ '/<code [^>]+>/',
+ "",
+ str_replace(
+ [
+ "<br />",
+ " ",
+ "<pre>",
+ "</pre>",
+ "</code>"
+ ],
+ "\n",
+ " ",
+ ""
+ explode(
+ "<?php",
+ highlight_string("<?php " . $text, true),
+ 2
+ )[1]
+ )
)
);