Skip to content

Instantly share code, notes, and snippets.

/nokogiri.rb Secret

Created November 4, 2015 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b1eab9b787b4a0d1a286 to your computer and use it in GitHub Desktop.
Save anonymous/b1eab9b787b4a0d1a286 to your computer and use it in GitHub Desktop.
[8] pry(#<NotificationsController>)> doc = Nokogiri::HTML(%{ message.body })
=> #(Document:0x1b1618a4a8 {
name = "document",
children = [
#(DTD:0x1b16658250 { name = "html" }),
#(Element:0x1b16657af8 {
name = "html",
children = [
#(Element:0x1b16602a08 {
name = "body",
children = [
#(Element:0x1b16601d38 {
name = "p",
children = [ #(Text "message.body ")]
})]
})]
})]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment