I searched for a solution but nothing was relevant, so here is my problem:
I want to parse a string which contains HTML text. I want to do it in JavaScript.
var doc = new DOMParser().parseFromString(html, "text/html"); var links = doc.querySelectorAll("a");