cadena estática privada convertirabsoluteurls (string html, uri relativeBlococation) {
ihtmlDocument2 doc = new htmlDocumentClass ();
doc.write (nuevo objeto [] {html});
doc.close ();
foreach (IHTMLANCHORELEMENT Anchor en doc.links) {
Elemento ihtmlelement = (ihtmlelement) ancla;
string href = (string) element.getAttribute ("href", 2);
if (href! = null) {
URI ADDR = nuevo URI (relatobrobedlocation, href);
fallor.href = addr.absoluteuri;
}
}
foreach (imagen ihtmlimgelement en doc.images) {
Ihtmlelement Element = (ihtmlelement) imagen;
String src = (string) element.getAttribute ("src", 2);
if (src! = null) {
URI ADDR = nuevo URI (RelatobrobeSocation, SRC);
image.src = addr.absoluteuri;
}
}
cadena ret = doc.body.innerhtml;
regresar ret;
}