JSFiddle - React, Tailwind, and code Playground

HTML

remove <span class="s">some <br /> text</span> in html

JavaScript

$(".s").each(function(){
  $(this).replaceWith($(this).html());
});