Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Get text between tags..

$
0
0
Hi all,

I try to get some text between the tags, is this possible and how can this be done?
Code:

<ul class="listbox item-frame" tabindex="0"><li class="item active" data-val="1">
      Antique
    </li><li class="item" data-val="2">
      category
    </li><li class="item" data-val="3">
      category one
    </li><li class="item" data-val="4">
      category two
    </li><li class="item " data-val="5">
      category three
    </li><li class="item " data-val="6">
      category four
    </li><li class="item " data-val="7">
      category five
    </li>
</ul>

How to get the text between the tags and the data-val number in separate integers or strings and save them into one text file?
in same order so that when i read the text file for example:
everything gets exported like this:
category is 2
category one is 3
category three is 4

and so on..

Greetings,
Predricted

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>