RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: IanMitchell
Site: http://blog.centasm.net
Nokogiri does that by default when using the ::HTML call. You need to use .fragment
doc = Nokogiri::HTML.fragment(html)
Nokogiri does that by default when using the ::HTML call. You need to use .fragment
doc = Nokogiri::HTML.fragment(html)