I'm trying to get certain tags from a HTML string through JQuery. The code goes like this:
var links = $(htmlString).filter("link");
Are there any security issues with this? Particularly, does wrapping the HTML string as a JQuery object run the scripts inside the HTML string? If not, then is there any chance of a script injection attack through this HTML string?
I won't be appending this to any elements, just gonna work with the links
variable.