News

let runtContainers = document.querySelectorAll('.rich-text-runt'); for (let i = 0; i < runtContainers.length; i++) { let paragraphs = runtContainers[i].querySelectorAll('p'); for (let j = 0; j < paragraphs.length; j++) { let text = paragraphs[j].textContent.trim(); text = text.replace(/\s([^\s]+)$/, '\u00A0$1'); // Inserts non-breaking space paragraphs[j].textContent = text; } }