Jump to content

bbcode parsing


doddsey_65

Recommended Posts

hi, i have the following which parses the quote tag and replaces it with a span

 

$bb[] = "#\[quote\](.*?)\[/quote\]#si";
      $html[] = "<span class='quote'>\\1</div>";

 

what i would like however is for the bbcode to be

where xxxx is the name of the person you are quoting.

so how would i parse this? I also need the same for font color but if someone can provide a solution to this one then i think i could work it out.

Link to comment
https://forums.phpfreaks.com/topic/213872-bbcode-parsing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.