JSFiddle - React, Tailwind, and code Playground
HTML
remove <span class="s">some <br /> text</span> in html
JavaScript
$(".s").each(function(){
$(this).replaceWith($(this).text());
});
remove <span class="s">some <br /> text</span> in html
$(".s").each(function(){
$(this).replaceWith($(this).text());
});