Remove empty headings that contain additional empty html tags – Jquery
I have a script in my code to remove all empty heading tags so they're not read by screen readers: $("h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty").replaceWith(''); but it's not picking up heading tags that contain additional empty html like <h2><strong></strong></h2>…