module HtmlToAnsi

Constants

ESCAPE_REGEXP
VERSION

Public Class Methods

convert(html, wrap: true, width: nil) click to toggle source
# File lib/html_to_ansi.rb, line 9
def self.convert html, wrap: true, width: nil
  Html::Conversions.html_to_ansi html, wrap: wrap, width: width
end
unescape(ansi) click to toggle source
# File lib/html_to_ansi.rb, line 13
def self.unescape ansi
  ansi.gsub(ESCAPE_REGEXP, '')
end