Log in
Model

InnerHtmlValidator

Magento\PageBuilder\Model\Validator\InnerHtmlValidator

What it does

This validator checks HTML content within Page Builder elements that have the 'data-content-type="html"' attribute.

It recursively validates the inner HTML content by decoding HTML entities and passing them through Magento's WYSIWYG validator to ensure the HTML is safe and follows content security policies.

Developers use this when they need to validate user-generated HTML content in Page Builder components.

Public Methods

  • validate()