JSFiddle - React, Tailwind, and code Playground

by adamzr

HTML

<acronym title="Stack Overflow">SO</acronym>
<acronym title="Super User">SU</acronym>

JavaScript

$("acronym").each(function(){
       var abbr = $("<abbr></abbr>")
       var title = $(this).attr("title");
       abbr.attr("title",title);
       abbr.html($(this).html())
       $(this).replaceWith(abbr);
    });