Nokogiri::HTML

module Nokogiri::HTML

Constants

NamedCharacters

Instance of Nokogiri::HTML::EntityLookup

Public Class Methods

fragment(string, encoding = nil) Show source

Parse a fragment from string in to a NodeSet.

# File lib/nokogiri/html.rb, line 29
def fragment string, encoding = nil
  HTML::DocumentFragment.parse string, encoding
end
parse(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) Show source

Parse HTML. Convenience method for Nokogiri::HTML::Document.parse

# File lib/nokogiri/html.rb, line 23
def parse thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block
  Document.parse(thing, url, encoding, options, &block)
end

© 2008–2016 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部