public static function toText($html, bool $ignoreErrors = false): string
    {
        return (string) (new \Html2Text\Html2Text())->convert((string) $html, $ignoreErrors);
    }
public static function toText($html, bool $ignoreErrors = false): string
    {
        return (string) (new \Html2Text\Html2Text())->convert((string) $html, $ignoreErrors);
    }
public static function toText ( $ html , bool $ ignoreErrors = false ) : string { return ( string ) ( new \ Html2Text \ Html2Text ( ) ) -> convert ( ( string ) $ html , $ ignoreErrors ) ; }
Convert html to text using html2text
@see https://github.com/soundasleep/html2text
@param string $html
@return string
Convert html to text using html2text