Using auto_link() to output the copy from a CMS controlled page onto the front end. I have 2 email addresses, recruit@ and bankrecruit@ in the stored copy.
When I look at the front end the first email, recruit@, is auto_linked to become a linked email address but the second one becomes bank followed by the recruit@ email link. This is obviously not what I expected.
auto_link() is matching all cases of recruit@ in which case the bankrecruit@ is being converted as it finds recruit@ first and converts that.
If I remove the recruit@ then bankrecruit@ works fine. Also if I change the name to bank@ then both addresses work as expected.
Is there a resolution for this?
<p>This is the address a@test.com</p>
<p>This is the second address ba@test.com</p>
And the script is:
auto_link($content)
This is the address a@test.com
This is the second address ba@test.com
– rmccallum Jan 15 '13 at 13:57