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.
let content = "404 Not Found" let result = $("").html(content).text()
content: 404 Not Found, result: "404 Not Found"
404 Not Found
"404 Not Found"