Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text of webpage
#2
Member function str.Html2Text
Code:
Copy      Help
function $HTML

;Extracts text from HTML.

;EXAMPLE
;str s
;IntGetFile "http://www.quickmacros.com" s
;s.Html2Text(s)
;out s



MSHTML.IHTMLDocument2 d._create(uuidof(MSHTML.HTMLDocument))
ARRAY(VARIANT) a.create(1)
a[0]=HTML
d.write(a)
this=d.body.innerText


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)