View Single Post
  #1  
Old 14th February 2021, 22:42
geeb's Avatar
geeb geeb is offline
Member
 
Join Date: Dec 2014
Posts: 4
Default HTML source bbtag.
Hy please help.
My bbcode I cannot persuade it to function.


[PHP]if (stripos($message ,'
PHP Code:
') !== false){$message = htmlentities($message);$message = preg_replace("/(?<!\\\\)\[php(?::\w+)?\](.*?)\[\/php(?::\w+)?\]/si", "<div style="font-family: 'Courier New',Consolas,Monaco,monospace;font-size: 12px;background-color:#979992;padding:10px;">\\1</div>", $message);} 

Thanks help.
Reply With Quote