def METHOD_NAME(self, content, _):
    self.html = content
    self.ishtml = True
    self.pywebview_window.events.loaded.clear()
    if self.web_view.CoreWebView2:
        self.web_view.CoreWebView2.NavigateToString(self.html)
    else:
        self.web_view.EnsureCoreWebView2Async(None)