Model
IframeSrcAttributeValidator
Magento\PageBuilder\Model\Validator\IframeSrcAttributeValidator
What it does
This validator ensures that iframe src attributes in Page Builder content only reference allowed hosts for security purposes.
Developers would use this class to prevent malicious iframe injections by validating that iframe sources match a whitelist of approved domains, throwing a validation exception if unauthorized hosts are detected.
Public Methods
- validate()