you can probably do this with just a CSS selector: `content.find('.semantic-container > :not(.semantic-controls)').remove()`