I need to get Html tags with attributes extract from string
var text = '<span class="basic-c-style-22-p16">P</span><a href="#">link <span class="basic-c-style-21-p16">Some Text </span></a>'
I need to get outPut
var openHtmlTag = [ <span class="basic-c-style-22-p16">, <a href="#">, <span class="basic-c-style-21-p16"> ] var CloseHtmlTag = [ </span>,</a>,</span> ]
Thanks vinothkumar
1.4m articles
1.4m replys
5 comments
56.9k users