Escaping¶
From magento 2.4 the escape method has changed.
Instead of doing this:
$block->escapeHtml();
$escaper->escapeHtml();
For code completion we include a new use statement in phtml files.
use Magento\Framework\Escaper;
/** @var Escaper $escaper */