JSFiddle - React, Tailwind, and code Playground
HTML
<span data-title="Score">Score: 6-3 , 6-4</span>
JavaScript
$('[data-title="Score"]').text(function( index,text ) {
return text.replace(/ \,/g, ',');
});
<span data-title="Score">Score: 6-3 , 6-4</span>
$('[data-title="Score"]').text(function( index,text ) {
return text.replace(/ \,/g, ',');
});