For reasons, my server will often return html that's wrapped in a containing div:
<div class="useless-container">
<!-- the actual juice -->
</div>
Is there a way to set up a filter in HTMX which I can use to modify the html, i.e. to reduce the containing div?
Yes. Take a look at hx-select.