From: Albert Schlef Date: 2009-01-21T06:48:52+09:00 Subject: Re: Gsub!("\n","\n") Simon Tan wrote: > I have a string(I believe...I'm > using Hpricot to retreive web pages and it likes to add slashes to > everything). For example, I want to change "Hello, \nWorld" by changing > \n into a newline. Perhaps there's a misunderstanding here. I doubt Hpricot adds anything. If you see this "Hello, \nWorld" in 'irb' then that's because 'irb' shows you the string in the way you'd write it in your source-code. The two characters "\n" are actually a newline. -- Posted via http://www.ruby-forum.com/.