html2text icon indicating copy to clipboard operation
html2text copied to clipboard

PHP library to convert HTML to formatted plain text

Results 23 html2text issues
Sort by recently updated
recently updated
newest added

From what I understand this library may convert several elements to a markdown-style syntax. I would like to only output the textual content of the HTML string. Any pointers? I...

I cannot find a chomprensive list of construction options. Is there any place where I can look? Many thanks

need option for clean convert without modification like `` = `---------------------` but it actualy `` = `\n` and others like `` not wrapper with `_` : `_b_` thanks

Currently ordered lists are converted into unordered lists in text; using an asterisk instead of numbers. Would be great to use numbers for these cases. ## Example ```php (new \Html2Text\Html2Text('Item...

See #113 and #117, though for the latter this fixes reversions that affect #117. Combined with tweaks to the tests, this gets us a clean run (no deprecation errors) on...

adding the option of showing/hiding alt text from images

Fatal error with PHP 8.2 ``` trim(): Passing null to parameter #1 ($string) of type string is deprecated at line 354 in /var/www/default/Private/Vendor/html2text/html2text/src/Html2Text.php ```

The `html_entity_decode` is executed after links have been extracted but before the link list is built so html entities will still be present in the links. This PR fixes that...