public MainWindow() { InitializeComponent(); var doc = new mshtml.HTMLDocument(); doc.open("<DIV>Dimok</DIV>"); doc.close(); var html = doc.body.outerHTML; }