Routing hooks in Phoenix - How to modify rendered HTML before output?

I remember answering a question like this before and found it. I’m not sure if that’s a help as you’re looking to do a general hook into all render calls.

Do you have a real world example of what you’d want this behaviour for or just generally curious?