I've read this question to remove parent without remove childs, but it don't work if the child node is a node type 3 (text)
<div>
    <h1>
        <u>
            Hello world
            <i> How are you ? </i>
        </u>
    </h1>
</div>
For example, I want to remove <u> tag (parent of Hello world node type text and i) using vanilla javascript.
After removing u tag I would like to have:
<div>
    <h1>
        Hello world
        <i> How are you ? </i>
    </h1>
</div>
 
    