I have a few divs that are created using PHP. The anchor within the div always has a HREF, even if it is blank. Basically, I am trying to detect if the HREF is blank. If it
You can check for an empty href attribute and "unwrap" those links using .replaceWith() like this:
href
$(".article[href='']").replaceWith(function() { return this.innerHTML; });
You can give it a try here.