I've written a script that takes input and modifies it in the same way that VB and invision board do.
i want to take [email=address@domain.com]mail me[/email] and replace them with
<script>var Line1=address; var Line2=domain.com; document.write('<a href="mailto:"' + Line1 + '@' + Line2 + '>mail me</a>');</script>
The reason that I do this is to avoid the evil bots that browse the web for e-mail addresses and add them to junk mail lists.
I've got the script to go from [email] to script mailto, but I can't make it go back again.
Please help me.
Question 1: Am I being paranoid about these email-address bots?
Question 2: How do I make the address go back to [email] again?
I'm using preg_replace, btw.
KITTfan2K