Can I scrapping an HTML code snippet on browser
19:52 06 Dec 2022

I have an HTML code block. How can I scrapping on browser this snippet with pure JS or JQuery?

Here is my code:

  • New York
  • London
  • Madrid
  • Paris

The result I expected is:

New York, London, Madrid, Paris

I don't need to get a website's HTML document. I already have many blocks. I just want to client-side scrap these blocks.

javascript html jquery web-scraping client-side