public function onPostRender(FilterPostRenderEvent $event): void
    {
        foreach ($this->registry->getTemplateFilters() as $filter) {
            if (null !== ($mailRendered = $event->getMailRendered())
                    && $filter->supports($mailRendered)) {
                $filter->filter($mailRendered);
            }
        }
    }
public function onPostRender(FilterPostRenderEvent $event): void
    {
        foreach ($this->registry->getTemplateFilters() as $filter) {
            if (null !== ($mailRendered = $event->getMailRendered())
                    && $filter->supports($mailRendered)) {
                $filter->filter($mailRendered);
            }
        }
    }
public function onPostRender ( FilterPostRenderEvent $ event ) : void { foreach ( $ this -> registry -> getTemplateFilters ( ) as $ filter ) { if ( null !== ( $ mailRendered = $ event -> getMailRendered ( ) ) && $ filter -> supports ( $ mailRendered ) ) { $ filter -> filter ( $ mailRendered ) ; } } }
Action on post render event of mail templater.

@param FilterPostRenderEvent $event The event
Action on post render event of mail templater .