Running autolink on text containing a mailto: link breaks

ActionView::Helpers::TextHelper#autolink does not handle certain mailto: links properly.

Assume the following html:

<a href="mailto:david@loudthinking.com">Mail me</a>

When running this html through autolink, it should not alter the html. However it is transformed to:

<a href="mailto:<a href="david@loudthinking.com">david@loudthinking.com</a>">Mail me</a>

Oops,

duplicate issue, ignore this post and see:

http://groups.google.com/group/rubyonrails-core/t/b8ab1d61416ee641