Glad I could help.:)
I did realize something just now, Not late last night(actually early morning:D) when I previously posted.
Instead of adding and using the arContent()
to add line.breaks to the html, it can all be done w/the .Replace.
If .Url.AbsoluteUri.StartsWith(urlMain) AndAlso .Url.AbsoluteUri.Length > urlMain.Length Then
sMain = .Document.Body.InnerHtml '// your html.source.
If sMain.Contains("<PRE>") Then
iSi = sMain.IndexOf("<PRE>") + 5 '// locate your start.point.
iEi = sMain.IndexOf("</PRE>", iSi) '// locate end.point.
.DocumentText = "<div style=""font-family:Verdana;font-size:14px;""><hr />" & sMain.Substring(iSi, iEi - iSi).Replace(vbCrLf, "<br />") & "<hr /></div>" '// get results.
End If
End If