Class: Gitlab::Email::HtmlToMarkdownParser
- Inherits:
-
Html2Text
- Object
- Html2Text
- Gitlab::Email::HtmlToMarkdownParser
- Extended by:
- Utils::Override
- Defined in:
- lib/gitlab/email/html_to_markdown_parser.rb
Class Method Summary collapse
-
.convert(html) ⇒ Object
This redefinition can be removed once github.com/soundasleep/html2text_ruby/pull/30 is merged and released.
Methods included from Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Class Method Details
.convert(html) ⇒ Object
This redefinition can be removed once github.com/soundasleep/html2text_ruby/pull/30 is merged and released.
25 26 27 28 29 30 |
# File 'lib/gitlab/email/html_to_markdown_parser.rb', line 25 def self.convert(html) html = fix_newlines(replace_entities(html)) doc = Nokogiri::HTML(html) new(doc).convert end |