Jump to content

Multiple occurances of bbcode/preg_replace?


jackpf

Recommended Posts

Hi all,

Just wondering, is there a way to use preg_replace() to replace tags which aren't closed in the right order?

For example-

If someone were to have [colour=red]redblue[/colour][/colour]

I've noticed that preg_replace() can't handle it, and cuts out one of the tags...

Thanks for any help,

Jack.

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.