Filtering post message on output


Active member
I'd like to make an add-on to filter and replace certain message text when it's being output, where should I be looking to extend for this?

I've been able to make an add-on to do it before it's written to the database by extending Datawriter DiscussionMessage Post.php but now I need this to happen after the message is retrieved as I don't want the filter to be permanent.