From: Julius Plenz Date: 2005-05-31T05:45:21+09:00 Subject: Re: How to extract texts from html source? * Tom Reilly [2005-05-10]: >#-------------------------------------------------------------------- ># Strip HTML Tags from Line >#-------------------------------------------------------------------- > > def striphtml(line) I'd rather recommend to use line.gsub(/\n/, ' ').gsub(/<[^>]+>/, '') instead of > line.gsub(/\n/, ' ').gsub(/<.*?>/, '') > end Julius