Is there any way for all my PHP and/or HTML file output to be \"filtered\" before being displayed in the browser? I figured that I could pass it through a global function b
Have a look at using Smarty. It's a templating system for PHP, that is good practice to use, and into which you can plug global output filters.