https://htmx.org logo
I am running into a strange issue with `hx-swap-oo...
# 🔥-django-htmx
a
I am running into a strange issue with
hx-swap-oob
. I have this
Copy code
html
 <tr><td><button hx-post="/" hx-target="closest tr" hx-swap="outerHTML"></button></td></tr>

<!-- my response -->
<tr>.....</tr>
That works fine. But when my response is this, the weirdest thing happens.
Copy code
html
   <div id="messages" hx-swap-oob="true">....</div>
   <tr>....</tr>
When I do that, the message works but all the html tags get stripped out of my
<tr>
so instead I just get whatever text was in the
tr
but all
tr
tags and
td
tags are left out of the response. Any ideas?