html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Fix `html_entity_decode` deprecation warning in PHP 8.1

Open AdeAttwood opened this issue 3 years ago • 1 comments

Passing null as the second parameter is deprecated in PHP 8.1. When using the legacyConstruct function the htmlFuncFlags are never set and passing null into html_entity_decode.

This move setting htmlFuncFlags above the legacy check to ensure they are always set to prevent passing null into html_entity_decode.

AdeAttwood avatar Jan 14 '22 10:01 AdeAttwood

@mtibben could this please be merged and a new release created? :-) Thank you.

tinect avatar Mar 09 '22 13:03 tinect