2012-10-04, 04:54 PM
Hi,
I'm designing a plugin which I use preg_replace in it. For Example:
[attachment=27377]
I'm designing a plugin which I use preg_replace in it. For Example:
$message =preg_replace('#\[plugintag\](.*?)\[/plugintag\]#s',"<div align=\"center\">{$text}</div>", $message);
This works perfectly, but when a search highlight is given in showthread.php and the highlight word is like a word (or is like the tags) between the plugin tags (or is like the tags), it will be highlighted and the tags will be destroyed and won't functioning!(Like the attached image)[attachment=27377]