JAVASCRIPT - HOW TO Convert Multiple Lines Text to Single Line - Javascript Source Code

JAVASCRIPT - HOW TO Take Multiple Lines of Text and Put all the Text on a Single Line

Home Short:

This Javascript code will take unlimited number of lines of text and place all the text on one single line.

This Javascript code splits the multiple lines of text and then rejoins them, replacing each line break with a space resulting in the entire text residing on one single line.

For example, if you have a textarea that you want to put the text all on one single line ...

Try Multiple Lines Text to Single Line for Yourself

Enter any text you would like in the textarea below and press the button with the text All On One Line

S
H
A
R
E