Well my problem is simple yet complex
Basically I have a custom forum system using PHP, and I just tried adding a "[dhtml] HTML HERE [/dhtml]" function, but whatever I try nothing works.
Ideally I need a script that replaces "<" with "<" and ">" with ">", but only inside the "[dhtml] [/dhtml]" tags.
Here is what I have tried:
$toreplace = "[dhtml]<b>This is bold sample text</b>[/dhtml]"
$replmeDhtml = "/\[dhtml\](.*?)\[\/dhtml\]/";
$replyouDhtml = "[dhtml]\\1[/dhtml]";
$replyouDhtml = str_replace("<","<",$replyuDhtml);
$replyouDhtml = str_replace(">",">",$replyuDhtml);
$toreplace = preg_replace($replmeDhtml,$replyouDhtml,$toreplace);
echo $toreplace;
But nothing.
Any ideas?