This code here is working perfectly fine for the most part. this.content
are strings of HTML comeing from JSON.
$(this.content).find('img, a[href$=".jpg"], a[href$=".jpeg"], a[href$=".JPEG"], a[href$=".png"], a[href$=".pdf"], a[href$=".PDF"]').each(function() {
});
For some reason though this string:
Packaged in lots of 10 sets
<img class="alignnone size-full" src="http://www.integra-adhesives.com/wp-content/uploads/2011/03/Sink_Fastener.jpg" alt="" width="300" />
Is making jQuery cause a fit. It is throwing: Uncaught Error: Syntax error, unrecognized expression:
I am using jQuery v2.1.1.
Can anyone help?