CodeIgniter Forums
Using safe_mailto() within larger string - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Using safe_mailto() within larger string (/showthread.php?tid=11251)



Using safe_mailto() within larger string - El Forum - 09-01-2008

[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.


Using safe_mailto() within larger string - El Forum - 09-01-2008

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


Using safe_mailto() within larger string - El Forum - 09-01-2008

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


Using safe_mailto() within larger string - El Forum - 09-01-2008

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