Help with a UBB Code style parser...

From: Date: Wed, 11 Jun 2003 11:49:14 +0000
Subject: Help with a UBB Code style parser...
Groups: php.general 
Request: Send a blank email to php-general+get-151049@lists.php.net to get a copy of this message
Hi all... I already have a bbcode style parser for my content ie: $output = str_replace("[b]",'<b>',$output); $output = str_replace("[/b]",'</b>',$output); $output = str_replace("[i]",'<i>',$output); $output = str_replace("[/i]",'</i>',$output); $output = str_replace("[img]",'<img src=\"',$output); $output = str_replace("[/img]",'\">',$output); etc... But I need to make a link parser ie: [url=http://xxx.xxx/blah]Link Title[/url] to produce a link of <a href="http://xxx.xxx/blah" target="_new">Link Title</a> Thanks guys!!!!! ;o)

« previous php.general (#151049) next »