static void Main(string[] args) { string p = "C:\\Users\\Victor\\AppData\\Local\\Temp\\index.htm"; var doc = new HtmlDocument(); doc.Load(p); ProcessURIs.Go(doc.DocumentNode, new Uri(p)); doc.Save(p + "1.htm", doc.StreamEncoding); }
static void Main(string[] args) { if (!Clipboard.ContainsText(TextDataFormat.Html)) { return; } var bufferData = Clipboard.GetText(TextDataFormat.Html); var bp = CF_HTML.Parse(bufferData); ProcessURIs.Go(bp.Item1.DocumentNode, new Uri(bp.Item2["SourceURL"] ?? "about:blank")); var newBufferData = CF_HTML.Produce(bp.Item1, bp.Item2["SourceURL"]); Clipboard.SetText(newBufferData, TextDataFormat.Html); return; }