Forum: Ruby on Rails auto_link issue with email address inside <a>

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
rien (Guest)
on 2009-01-31 22:46
(Received via mailing list)
I think there is a bug in auto_link_email_addresses, if an e-mail
address is already linked.

This works fine:
<% p = "<a 
<%= auto_link(p) %>

This fails:
<% p = "<a href=\"mailto:removed_email_address@domain.invalid\">Some Other 
Text</a>" %>
<%= auto_link(p) %>

And results in:

<a href="mailto:<a 
a>">Some Other Text</a>

Or do I overlook something?
This topic is locked and can not be replied to.