def METHOD_NAME(self, md):
    """Strip unwanted HTML attributes and/or comments."""
    md.registerExtension(self)
    config = self.getConfigs()
    striphtml = StripHtmlPostprocessor(
        config.get('strip_comments'),
        config.get('strip_js_on_attributes'),
        config.get('strip_attributes'),
        md
    )
    md.postprocessors.register(striphtml, "strip-html", 1)