├── spec ├── examples │ ├── empty.txt │ ├── empty.html │ ├── dom-processing.txt │ ├── malformed-style.txt │ ├── invalid.txt │ ├── test3.html │ ├── test3.txt │ ├── utf8-example.txt │ ├── zero-width-non-joiners.txt │ ├── nbsp.txt │ ├── test4.txt │ ├── windows-1252-example.txt │ ├── test4.html │ ├── non-breaking-spaces.html │ ├── non-breaking-spaces.txt │ ├── zero-width-non-joiners.html │ ├── nbsp.html │ ├── utf8-example.html │ ├── invalid.html │ ├── dom-processing.html │ ├── pre.txt │ ├── table.txt │ ├── windows-1252-example.html │ ├── pre.html │ ├── lists.txt │ ├── nested-divs.txt │ ├── msoffice.txt │ ├── basic.txt │ ├── more-anchors.txt │ ├── lists.html │ ├── anchors.txt │ ├── nested-divs.html │ ├── images.txt │ ├── anchors.html │ ├── basic.html │ ├── newlines.txt │ ├── more-anchors.html │ ├── newlines.html │ ├── malformed-style.html │ ├── table.html │ ├── images.html │ ├── full_email.txt │ ├── msoffice.html │ └── full_email.html ├── spec_helper.rb ├── examples_spec.rb └── html2text_spec.rb ├── .gitignore ├── lib ├── html2text │ └── version.rb └── html2text.rb ├── Rakefile ├── .editorconfig ├── Gemfile ├── .rubocop.yml ├── LICENSE.md ├── html2text.gemspec ├── .github └── workflows │ └── build.yml ├── README.md ├── Gemfile.lock └── CHANGELOG.md /spec/examples/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/examples/empty.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/examples/dom-processing.txt: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /spec/examples/malformed-style.txt: -------------------------------------------------------------------------------- 1 | Some body -------------------------------------------------------------------------------- /spec/examples/invalid.txt: -------------------------------------------------------------------------------- 1 | Hello &nbsnbsp; world -------------------------------------------------------------------------------- /spec/examples/test3.html: -------------------------------------------------------------------------------- 1 | test one
test two -------------------------------------------------------------------------------- /spec/examples/test3.txt: -------------------------------------------------------------------------------- 1 | test one 2 | test two -------------------------------------------------------------------------------- /spec/examples/utf8-example.txt: -------------------------------------------------------------------------------- 1 | - ÅÄÖ 2 | - åäö -------------------------------------------------------------------------------- /spec/examples/zero-width-non-joiners.txt: -------------------------------------------------------------------------------- 1 | foobar -------------------------------------------------------------------------------- /spec/examples/nbsp.txt: -------------------------------------------------------------------------------- 1 | hello world & people < > &NBSP; -------------------------------------------------------------------------------- /spec/examples/test4.txt: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 < 6 -------------------------------------------------------------------------------- /spec/examples/windows-1252-example.txt: -------------------------------------------------------------------------------- 1 | - ÅÄÖ 2 | - åäö -------------------------------------------------------------------------------- /spec/examples/test4.html: -------------------------------------------------------------------------------- 1 | 1
2
3
4
5 < 6 -------------------------------------------------------------------------------- /spec/examples/non-breaking-spaces.html: -------------------------------------------------------------------------------- 1 | these spaces are non-breaking -------------------------------------------------------------------------------- /spec/examples/non-breaking-spaces.txt: -------------------------------------------------------------------------------- 1 | these spaces are non-breaking -------------------------------------------------------------------------------- /spec/examples/zero-width-non-joiners.html: -------------------------------------------------------------------------------- 1 |

foo‌bar

2 | -------------------------------------------------------------------------------- /spec/examples/nbsp.html: -------------------------------------------------------------------------------- 1 | hello   world & people < > &NBSP; -------------------------------------------------------------------------------- /spec/examples/utf8-example.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/*.DS_Store 2 | *.gem 3 | spec/examples/*.output 4 | .byebug_history 5 | .idea 6 | -------------------------------------------------------------------------------- /spec/examples/invalid.html: -------------------------------------------------------------------------------- 1 | Hello &nbsnbsp; world 2 |