Forum: Ruby on Rails Extract copy from HTML?

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.
5f3d52658aafcf0aabe76a5147e8909f?d=identicon&s=25 Tom (Guest)
on 2006-12-31 00:38
(Received via mailing list)
Is there a Ruby method to strip (not sanitize) HTML?  For example:

my_string = '<h1>This <strong>copy</strong> is very important.</h1>'
my_string.remove_html =>
  'This copy is very important'

This topic is locked and can not be replied to.