From: Joseph Michaels Date: 2006-05-06T02:47:32+09:00 Subject: Re: Noob Question - String Manipulation... On 5/5/06, Joe Cairns wrote: > Hey, I'm pretty new to Ruby and am trying to absorb the "ruby way" of > things as much as I can. What's the best way to solve this problem: > > I have a string that contains html formating. All I want is the plain > text. > I don't know of any libraries offhand that can do this (CGI only has escape/unescape), but it's fairly simple: html_string.gsub(/<[^>]+>/, "") Replacing that regex with something better, probably.