Remove a HTML tag but keep its text or innerHtml

For example we want to remove tag in this line :
techrappers is a very nice tech solution Website.

You can achieve it by two solutions :

1) $('b').contents().unwrap();

In the above Jquery line it will remove the tags and return you with simple string.

2) Or a much faster solution if you are unwrapping lots of a content

$("b").replaceWith(function() { return $(this).contents(); });