• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using safe_mailto() within larger string

#1
[eluser]Daniel H[/eluser]
Hi

Can anyone give me the code that will take a string, identify if there are any email addresses in it, replace them with obscured addresses (using safe_mailto()), and then returning the entire string?

Many thanks,

Dan.

#2
[eluser]Derek Allard[/eluser]
There is a function in the url helper that will do just that Dan.

#3
[eluser]Daniel H[/eluser]
Ah - I hadn't realised auto_link used safe_mailto: many thanks.

#4
[eluser]Derek Allard[/eluser]
My pleasure.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.