EVEN MORE TROUBLE NOW...
Change This:
[MAILTO]name@domain.com[/MAILTO]
To This:
<a href="mailto:name@domain.com">name@domain.com</a>
--basically just make the text between the "MAITLO" tag a mailto link. I also need code to do the reverse as well (go from an HTML mailto link to the first code)
--NOTE: this also can't interfere with the below code:
$body = preg_replace("/[LINK]([[]]+)[\/LINK]/", "<a target=\"_blank\" href=\"\1\">\1</a>", $body);
-I tried doing something similar and it gets all mixed up, it doesnt know what are mailto links and what are normal links....THE PROBLEM IS WHEN I REVERSE IT AND GO FROM A HTML TAG TO A "[]" tag.
Thanx in advance.