home/bumble2020/domainwizard.net/vendor/tgalopin/html-sanitizer/src/Extension/Code/CodeExtension.php000064400000001462150031516600027504 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HtmlSanitizer\Extension\Code; use HtmlSanitizer\Extension\ExtensionInterface; /** * @author Titouan Galopin * * @final */ class CodeExtension implements ExtensionInterface { public function getName(): string { return 'code'; } public function createNodeVisitors(array $config = []): array { return [ 'code' => new NodeVisitor\CodeNodeVisitor($config['tags']['code'] ?? []), 'pre' => new NodeVisitor\PreNodeVisitor($config['tags']['pre'] ?? []), ]; } }