Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plain text
#7
If need only text/URL of links:
Macro Macro1668
Code:
Copy      Help
out
str s=
;<html><body>
;<!--StartFragment--><a href="http://www.quickmacros.com/forum/viewtopic.php?p=22851" class="topictitle">Plain text</a>
;<br>
;by <a href="http://www.quickmacros.com/forum/memberlist.php?mode=viewprofile&amp;u=1745">ldarrambide</a> on 09 Mar 2012 16:19
;<!--EndFragment-->
;</body>
;</html>

HtmlDoc d
d.SetOptions(3)
d.InitFromText(s)
ARRAY(MSHTML.IHTMLElement) a
d.GetLinks(a)
int i
for i 0 a.len
,out a[i].innerText
,out a[i].getAttribute("href" 0)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)