Hey i have an html string i\'m having trouble getting the tags from.
I have tried alot of stuff, here are some :
var head = $(\"head\",$(htmlString))
Try Below Code:
var head = htmlString.match(/]*>[\s\S]*<\/head>/gi); var body = htmlString.match(/]*>[\s\S]*<\/body>/gi);