HTMLPurifier - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Good day,I was working on a project then suddenly after the latest generation this error occurred

C:\xampp\htdocs\project1\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Lexer.php(309): str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecatedanyone encountered and has resolved this?

Current release (v4.14.0) of HTMLPurifier does not support PHP 8.1 yet, but you may try to change to the “dev-master” version, see Composer Packages.

sorry i did not get your suggestion as i am a still a monkey at coding.what do i search on the composer package?

iggabz wrote:

C:\xampp\htdocs\project1\vendor\ > ezyang\htmlpurifier > \library\HTMLPurifier\Lexer.php(309):

thank you for the assistance.