Data manipulation right before render


I am wondering if there is a Listener that I can use to manipulate all the output from the templates.

I checked the template_post_render but it has a note:

Called after a template is rendered. Please note that this is only called for templates that are created via the template object directly. Templates that are included via <xen:include> will not trigger this event.

Is there anything else I can use so that all output is filtered?



XenForo developer
Staff member
Have a look at front_controller_post_view. That said, note that this is all output - the $content that's passed may not be HTML, and there are situations where it can be an object (XenForo_FileOutput) instead of a string.