document.querySelectorAll('.elementor-post-info__terms-list').forEach(function(el) { el.childNodes.forEach(function(node) { if (node.nodeType === Node.TEXT_NODE) { node.textContent = node.textContent.replace(/,\s*/g, ' '); } }); });