In the text on the page, I see single letters at the end of the text line, for example:
Lorem ipsum dolor a
dolor amot
which in Polish is a mistake.
it should be correctly:
Lorem ipsum dolor
a dolor amot
How could he have eliminated this other than by inserting after each single letter?
It currently uses JavaScript
orphans: () => {
const paragraphs = document.querySelectorAll('.content p');
const list = document.querySelectorAll('.content li');
const elements = [...paragraphs, ...list];
if (elements) {
[...elements].forEach(e => {
if (e) {
let content = e.innerHTML.replace(/(\s)([\S])[\s]+/g, '$1$2 ');
e.innerHTML = '';
e.insertAdjacentHTML('afterbegin', content);
}
});
}
},
but it should probably be done once on the backend side?