Transform output before rendering

Is it possible to manipulate/transform the output of my posts before rendering the page? I would like to make small changes to the generated output on the server-side, instead of having to ship Javascript to the visitor just to fix things that could just as easily be rendered on the server.