Basically what I need it to do is instead of convert script tags to HTML tags, I need it to convert HTML tags to the script tags ([b], [u], etc.). I'm sure this wouldn't take long for somebody who knows what they're doing, but this is a little bit over my head yet. It'd be nice if someone could do this for free...but I am willing to pay a small amount via PayPal.
I understand there are plenty of free scripts to convert BB code to HTML, but I need to convert HTML to BB code. I haven't been able to find a script that does that.
But I see, it's basically just changing the <> and [] around...it's just the ones for like images and font color and stuff that confused me.
I did dive a little deeper into a google search today, tho, and I found one that uses str_replace() instead of preg_replace()...the code for that one is much more simple, and I think I should be able to reverse it no problem.
sorry, I forgot to rename the $to[]s to $from[]s..
code edited above..
the problem with str_replace() is case-sensitivity..
preg_replace() with flag i makes it case-insensitive and that's an advanatge unless you are using PHP5 where you can use str_ireplace().
__________________ PHPSimplicity
We don't need a reason to help people - Zidane [FF9]