I noticed some example using something like so: data = $(data).not("style, meta, link, script, title");
to filter out thes tags. I tried using this to filter img as well: data = $(data).not("style, meta, link, script, title, img"); and what I noticed is that this doesn't work if the elements are within other elements. For example, I have this simple example: <img src="1"> <div> <img src="2"> </div> <img src="3"> In this case, only img 1 and 3 will be filtered out. img 2 will remain. I am wondering if that is proper behavior for .not(elements)? My goal is to filter all elements regardless of node or branch depth. Thanks -- HLS