I have this
<div class="out">
out asdaasd
<div class="in"> in </div>
out
</div>
and want to get it to this
<div class="out"> out asdaasd <div>
<div class="in"> in </div>
<div class="out"> out </div>
with arbitary text inside out, how can I detect position of inner div and get what I need?
Live Example