Allow filtering of html before output