const extractNodesFrom = selector => {
[...document.querySelectorAll(selector)].forEach(inl => {
const parent = inl.parentNode;
[...inl.children].forEach(child => {
parent.appendChild(child);
});
parent.removeChild(inl);
});
};
extractNodesFrom(".inl");