Sha256: f9e08510447740c4c59dfa4b87ea279d5970bf26dc2da4134bc08c5034209ee0

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

require 'nokogiri'

module LinkThumbnailer
  class Parser

    def call(source)
      ::Nokogiri::HTML(source, nil, LinkThumbnailer.page.config.encoding)
    rescue ::Nokogiri::XML::SyntaxError => e
      raise ::LinkThumbnailer::SyntaxError.new(e.message)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link_thumbnailer-3.3.1 lib/link_thumbnailer/parser.rb