Module: Gigbot::Helpers::StringHelpers

Included in:
Parsers::Indeed, Parsers::JsRemotely, Parsers::JustRemoteCo, Parsers::RSS, Parsers::RemoteCo
Defined in:
lib/gigbot/helpers/string_helpers.rb

Instance Method Summary collapse

Instance Method Details

#textify_html_summary(summary) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/gigbot/helpers/string_helpers.rb', line 4

def textify_html_summary(summary)
  IO.popen("w3m -T text/html -dump -cols 80", mode="r+") do |io|
    io.write(summary)
    io.close_write
    return io.read
  end
end