CODE
, it should use htmlspecialchars to take out the html in the [code]ed area.
I've tried this
[code] '#\[code\](.*?)\[/code\]#si' => 'Code: <div style="padding: 10px;border:1px dashed; border-color:#FF0000;">'.htmlspecialchars(\\1).'</div>',
I've tried this
[code] '#\[code\](.*?)\[/code\]#si' => 'Code: <div style="padding: 10px;border:1px dashed; border-color:#FF0000;">'.htmlspecialchars(\\1).'</div>',
but that only gives me an error. My original code is:
CODE
'#\[code\](.*?)\[/code\]#si' => 'Code: <div style="padding: 10px;border:1px dashed; border-color:#FF0000;">\\1</div>',
Basicly i need that to not sure the html part. Just to show <a href="#">Test</a> when someone trys to make a link in the [code] tag.