Validator
Magento\Cms\Model\Wysiwyg\Validator
What it does
This class validates HTML content entered in WYSIWYG editors throughout the Magento CMS module.
It acts as a wrapper around the core WYSIWYG validator, handling validation errors by either throwing exceptions or displaying warning messages to administrators based on configuration settings.
Developers use this when they need to ensure HTML content is safe and valid before saving CMS pages, blocks, or other content.
Public Methods
- validate()