How to replace \"foo\" to \"bar\" ?
From
foo1foo2foo4foo5foo6
foo2foo4foo5
I could do
nokogiri_doc.css('p').each { |p| p.inner_html = p.inner_html.gsub(/\n/, "") }
To replace all ocurrences of \n inside p tag to br tags