Make preview html use same filter as output html

The reason I need this is that I updated the local copy of the site-logo plugin and the anchor link class changed - but it's not been updated on wordpress.com and so I want to use the filter to change the class on my local install so that my themes continue to work.

Not sure if this is the best way to do it since the logo and size parameters are now missing.