Quantcast
Viewing all articles
Browse latest Browse all 4

search within html file

As said HTML is text so you don't need to convert it to text. If you have simple search you can use methods in String class like IndexOf, but there are many options. You might want to use the HTML tags in document with regular expressions to find what you are looking for; for example to find all <p> tags. If you know the file is xhtml then parsing the XML and searching with XPATH might give the best performance. Or you can use some 3rd party HTML parser, like HTML Agility pack.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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