From: Stefan Scholl Date: 2006-07-23T16:45:11+09:00 Subject: Re: strip tags? Max Benjamin wrote: > Is there an easy way to strip html tags from strings? A regex isn't always the _best_ way to deal with markup languages, but for an _easy_ way it's good enough. $ irb irb(main):001:0> a = 'This is strong stuff!
Some foo' => "This is strong stuff!
\"Some" irb(main):002:0> a.gsub(/<.*?>/, '') => "This is strong stuff!"