fix #2 for real this time
This commit is contained in:
		@@ -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]
 | 
			
		||||
					)
 | 
			
		||||
				)
 | 
			
		||||
			);
 | 
			
		||||
		
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user