Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get inner_html of ruby Nokogiri NodeSet unescaped?

Tags:

ruby

nokogiri

I would like to get unescaped inner html from a Nokogiri NodeSet. Does anyone know how to do this?

like image 714
Peder Avatar asked Nov 19 '09 11:11

Peder


People also ask

What is Nokogiri used for in rails?

Nokogiri is an open source library in Ruby used to read HTML and XML Basically it is used to read information from websites to use for your application.

What is Nokogiri Ruby?

Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is fast and standards-compliant by relying on native parsers like libxml2 (CRuby) and xerces (JRuby).

What is the use of Nokogiri gem?

Nokogiri (htpp://nokogiri.org/) is the most popular open source Ruby gem for HTML and XML parsing. It parses HTML and XML documents into node sets and allows for searching with CSS3 and XPath selectors. It may also be used to construct new HTML and XML objects.


1 Answers

Anything not okey with?

nodeset.inner_html
like image 111
akuhn Avatar answered Oct 08 '22 03:10

akuhn