Sha256: da7ae68f2fed06fcdd77e4cd91375da66fa6e0299b378cc7c2d13a0a41ced5b8

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

require 'hpricot'

require 'murlsh'

module Murlsh

  # Parse HTML with Hpricot and return an Hpricot doc.
  class HtmlParse50Hpricot < Plugin

    @hook = 'html_parse'

    def self.run(x)
      Hpricot(x)
      # Nokogiri(x) also works.
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
murlsh-1.1.0 plugins/html_parse_50_hpricot.rb