HTML2Text Deprecation

Created on 7 January 2025, 20 days ago

Problem/Motivation

PHP 8.1 and later have deprecated passing null strings to the strip_tags function and the following PHP warning is generated:
Deprecated function: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in Html2Text\Html2Text->converter() (line 383 of /code/vendor/html2text/html2text/src/Html2Text.php)

Steps to reproduce

Have a string that is processed by the HTML2Text composer package as a null.

Proposed resolution

Write a patch to check if a string is null and set it to a blank string if it is.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scampbell1 New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024