mb_encode_numericentity

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Encode character to HTML numeric string reference
mb_encode_numericentity(    string $string,    array $map,    ?string $encoding null,    bool $hex false): string
            $this->text preg_replace('/&(#(?:x[a-fA-F0-9]+|[0-9]+);)/''&\1'$this->text);

            
$this->text mb_encode_numericentity($this->text, array(0x00800xffff00xffff), 'UTF-8');




            
$box imagettfbbox($this->getPointSize(), 0$this->file$this->text);