Hi,
So I figured out that the replace function, that finds all single-letter "words" (prepositions and conjunction, etc.) and replace the space after them with a
to prevent leaving these characters at the end of line, should be something like
myString.replace(/\s\w(?=\s)/,"$1 ")
Now how do I apply it to all text on a webpage? I am looking for some universal solution, a simple function which I put into <head>
without need to change anything else in the webpage.
Thank you very much.