PHP 8.3.31
Preview: DefaultHtmlToTextConverter.php Size: 589 B
/home/getspomw/royalsquad.us/vendor/symfony/mime/HtmlToTextConverter/DefaultHtmlToTextConverter.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Mime\HtmlToTextConverter;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class DefaultHtmlToTextConverter implements HtmlToTextConverterInterface
{
    public function convert(string $html, string $charset): string
    {
        return strip_tags(preg_replace('{<(head|style)\b.*?</\1>}is', '', $html));
    }
}

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
589 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.40 KB lrw-r--r-- 2026-04-26 11:45:55
Edit Download
623 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
894 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).