Hello
I am using MiniHtmlParser and inside <td> text1 <br> text2 </td>
Now it only retrieves the value text1 and ignores the other value.
How can I replace the <br> tag with a space? and retrieve text1 text2
Thank
I am using MiniHtmlParser and inside <td> text1 <br> text2 </td>
Now it only retrieves the value text1 and ignores the other value.
How can I replace the <br> tag with a space? and retrieve text1 text2
<table class="table" style="text-align:left;"> <tr> <td class="calendarSeparator" style="text-align: left; border-bottom: 2px solid #000;font-size: 15px;" colspan="6"> Ronda 1, Jornada 1 </td> </tr> <tr> <th>a1</th> <th>a2</th> <th>a3</th> <th>a4</th> <th>a5</th> <th>a6</th> </tr> <tr class="showFullMatch"> <td style="text-align:left;"> <a href="https://www.google.es/maps/dir//42.0766,1.82096/@42.0766,1.82096,16z?hl=ca" class="btn btn btn-primary" target="new"> <i class="fa fa-map-marker"></i> </a> Avià </td> <td> UEN <br> BCN </td> <td class="result" style="text-align:center;">0 - 0</td>
Sub Parsetest
Dim j As HttpJob
j.Initialize("",Me)
'j.Download(myurl)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim parsermini As MiniHtmlParser
parsermini.Initialize
Dim Root2 As HtmlNode = parsermini.Parse(j.GetString)
Dim table As HtmlNode = parsermini.FindNode(Root2, "table", parsermini.CreateHtmlAttribute("class", "table"))
Dim tbody As HtmlNode = parsermini.FindNode(table, "table", Null)
For Each tr As HtmlNode In parsermini.FindDirectNodes(tbody, "tr", Null)
Dim counter As Int
Dim counter2 As Int
For Each td As HtmlNode In parsermini.FindDirectNodes(tr, "td", Null)
counter = counter + 1
If counter = 1 Then
Dim a As HtmlNode = td.Children.Get(0)
End If
Log(parsermini.GetTextFromNode(td, 0))
Next
Next
End If
j.Release
Thank