JSFiddle - React, Tailwind, and code Playground

HTML

<div class="something">This, is, the, text. </div>
<div class="something">This, is, the, text. </div>
<div class="something">This, is, the, text. </div>

JavaScript

var elements = document.getElementsByClassName("something");
for (var i = 0; i < elements.length; ++i) {
    elements[i].innerHTML = elements[i].innerHTML.replace(/,/g,'');
}