diff --git a/app/soapbox/utils/html.js b/app/soapbox/utils/html.js index f303ba8e8..9eddcf876 100644 --- a/app/soapbox/utils/html.js +++ b/app/soapbox/utils/html.js @@ -14,12 +14,11 @@ export const stripCompatibilityFeatures = html => { '.recipients-inline', ]; + // Remove all instances of all selectors selectors.forEach(selector => { - const elem = node.querySelector(selector); - - if (elem) { + node.querySelectorAll(selector).forEach(elem => { elem.remove(); - } + }); }); return node.innerHTML;