How to replace <ins> tag with <del> tag and keep attributes of it in javascript or jquery? like the following
<ins data-author="auth1" data-ins-username="user1">auth1 text</ins>
<!-- After -->
<del data-author="auth1" data-ins-username="user1">auth1 text</del>
I found similar question with answer but it doesn't keep attributes.