Parsing html string to DOM Element: Issue with anchor Tag
I have been trying to parse html string to DOM nodes and i keep having the same issue with the anchor links irrespective of the approach i use, Here is the html string for testing: let htmlString = '<div><h2>Absolute URLs</h2><p><a href="https://www.w3.org/">W3C</a></p><p><a href="https://www.google.com/">Google</a></p><h2>Relative URLs</h2><p><a href="html_images.asp">HTML Images</a></p><p><a href="/css/default.asp">CSS Tutorial</a></p></div>'; and…