├── tests
├── html
│ ├── empty.html
│ ├── test3.html
│ ├── test4.html
│ ├── zero-width-non-joiners.html
│ ├── nbsp.html
│ ├── non-breaking-spaces.html
│ ├── utf8-example.html
│ ├── invalid.html
│ ├── dom-processing.html
│ ├── windows-1252-example.html
│ ├── pre.html
│ ├── lists.html
│ ├── nested-divs.html
│ ├── anchors.html
│ ├── basic.html
│ ├── more-anchors.html
│ ├── newlines.html
│ ├── blockquotes.html
│ ├── table.html
│ ├── images.html
│ ├── msoffice.html
│ └── full_email.html
├── txt
│ ├── empty.txt
│ ├── dom-processing.txt
│ ├── invalid.txt
│ ├── test3.txt
│ ├── utf8-example.txt
│ ├── zero-width-non-joiners.txt
│ ├── test4.txt
│ ├── nbsp.txt
│ ├── windows-1252-example.txt
│ ├── non-breaking-spaces.txt
│ ├── pre.txt
│ ├── table.txt
│ ├── lists.txt
│ ├── nested-divs.txt
│ ├── msoffice.txt
│ ├── basic.no-links.txt
│ ├── basic.txt
│ ├── more-anchors.txt
│ ├── anchors.no-links.txt
│ ├── anchors.txt
│ ├── images.txt
│ ├── newlines.txt
│ ├── blockquotes.txt
│ └── full_email.txt
├── failures
│ └── .gitignore
└── Html2TextTest.php
├── .gitignore
├── phpstan.neon.dist
├── phpunit.xml
├── src
├── Html2TextException.php
└── Html2Text.php
├── .github
└── workflows
│ ├── lint.yml
│ └── test.yml
├── html2text.php
├── .editorconfig
├── convert.php
├── composer.json
├── LICENSE.md
├── CHANGELOG.md
└── README.md
/tests/html/empty.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/txt/empty.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/txt/dom-processing.txt:
--------------------------------------------------------------------------------
1 | Hello
--------------------------------------------------------------------------------
/tests/html/test3.html:
--------------------------------------------------------------------------------
1 | test one
test two
--------------------------------------------------------------------------------
/tests/txt/invalid.txt:
--------------------------------------------------------------------------------
1 | Hello &nbsnbsp; world
--------------------------------------------------------------------------------
/tests/txt/test3.txt:
--------------------------------------------------------------------------------
1 | test one
2 | test two
--------------------------------------------------------------------------------
/tests/txt/utf8-example.txt:
--------------------------------------------------------------------------------
1 | - ÅÄÖ
2 | - åäö
--------------------------------------------------------------------------------
/tests/txt/zero-width-non-joiners.txt:
--------------------------------------------------------------------------------
1 | foobar
--------------------------------------------------------------------------------
/tests/txt/test4.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5 < 6
--------------------------------------------------------------------------------
/tests/txt/nbsp.txt:
--------------------------------------------------------------------------------
1 | hello world & people < > &NBSP;
--------------------------------------------------------------------------------
/tests/txt/windows-1252-example.txt:
--------------------------------------------------------------------------------
1 | - ÅÄÖ
2 | - åäö
--------------------------------------------------------------------------------
/tests/html/test4.html:
--------------------------------------------------------------------------------
1 | 1
2
3
4
5 < 6
--------------------------------------------------------------------------------
/tests/html/zero-width-non-joiners.html:
--------------------------------------------------------------------------------
1 |
foobar
2 | -------------------------------------------------------------------------------- /tests/txt/non-breaking-spaces.txt: -------------------------------------------------------------------------------- 1 | these spaces are non-breaking -------------------------------------------------------------------------------- /tests/html/nbsp.html: -------------------------------------------------------------------------------- 1 | hello world & people < > &NBSP; -------------------------------------------------------------------------------- /tests/html/non-breaking-spaces.html: -------------------------------------------------------------------------------- 1 | these spaces are non-breaking -------------------------------------------------------------------------------- /tests/html/utf8-example.html: -------------------------------------------------------------------------------- 1 |4 | Add some lists. 5 |
6 | 7 |This is some e-mail content. 7 | Even though it has whitespace and newlines, the e-mail converter 8 | will handle it correctly. 9 | 10 |
Even mismatched tags.
11 | 12 |Another line
Yet another line