Output
Magento\Catalog\Helper\Output
What it does
The Output helper is used to safely prepare and render product and category attribute HTML content in Magento 2.
It handles HTML escaping for security, processes WYSIWYG content with template directives (like widgets and variables), and allows developers to register custom handlers to modify attribute output before display.
Developers use this when displaying catalog attributes on the frontend to ensure content is properly sanitized and processed.
Public Methods
- addHandler()
- getHandlers()
- process()
- productAttribute()
- categoryAttribute()
- isDirectivesExists()