Welcome Guest, Not a member yet? Register   Sign In
Using safe_mailto() within larger string

[eluser]Daniel H[/eluser]

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,


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

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

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

Theme © iAndrew 2016 - Forum software by © MyBB