Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB