module ActionView::Helpers::SanitizeHelper

def strip_links(html)

# => 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')
==== Examples

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