module ActionView::Helpers::SanitizeHelper

def strip_links(html)

# => <malformed & link
strip_links('<malformed & link')

# => Blog: Visit.
strip_links('Blog: Visit.')

# => Please e-mail me at me@email.com.
strip_links('Please e-mail me at me@email.com.')

# => Ruby on Rails
strip_links('Ruby on Rails')

Strips all link tags from +html+ leaving just the link text.
def strip_links(html)
  self.class.link_sanitizer.sanitize(html)
end