I am trying to read div
contents of an html file with node js on server without using the browser. I would like to be able to use jQuery operations as well.
More specifically, something like content.find("div.t")
.
Is there a native way of doing this?
I tried to use fs.readfilesync
to read the html file on the server and to get the content, but this gives me a string, not html that I can make jQuery operations on.
Thanks.