Nokogiriã¯å®å¨ããã¶ã£å£ããHTMLã§ããã¼ã¹ã§ãããããã Nokogiri.parseã¯ãã¥ã¼ãªã¹ãã£ãã¯ã«HTMLãXMLããå¤æãã¦ãåã£ããã¼ãµã使ãããã«ãªã£ã¦ãããã§ãHTMLã ã¨ããã£ã¦ããå ´åã¯Nokogiri::HTML.parseã¨æ示ããã»ãããããnokogiri.rbããå¼ç¨ã module Nokogiri class << self ### # Parse an HTML or XML document. +string+ contains the document. def parse string, url = nil, encoding = nil, options = nil doc = if string =~ /^\s*<[^Hh>]*html/i # Probably html Nokogiri::HTML.parse(string,
{{#tags}}- {{label}}
{{/tags}}