JSFiddle - React, Tailwind, and code Playground
HTML
<div id='link1'>
<a style="font-size:10pt; color: #008056" href="somelink">Name;</a>
<a style="font-size:10pt; color: #008056" href="somelink">Name;one;two</a>
<a style="font-size:10pt; color: #008056" href="somelink">Name</a>
</div>
JavaScript
$('#link1 a').each(function(){
if($(this).html().split(";").length==2){
$(this).html($(this).html().replace(";",""))
}
});