Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/framework/Validator/HTML/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/Validator/HTML/TagValidatorInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\Validator\HTML;

use Magento\Framework\Validation\ValidationException;

/**
 * Validates tag for user HTML content.
 *
 * @api
 */
interface TagValidatorInterface
{
    /**
     * Validate a tag.
     *
     * @param string $tag
     * @param string[] $attributes
     * @param string $value
     * @param WYSIWYGValidatorInterface $recursiveValidator
     * @return void
     * @throws ValidationException
     */
    public function validate(
        string $tag,
        array $attributes,
        string $value,
        WYSIWYGValidatorInterface $recursiveValidator
    ): void;
}