javascript - How do I add lines in between paragraphs from inputted textarea text? -


i creating small webpage act teleprompter. users arrive @ page, copy , paste text text area, , text displayed in teleprompter fashion. text copied google drive or office.

my question how add blank lines in between paragraphs (like when enter has been pressed) when take text text area < p > tag using java script?

thanks in advance!

you need take new lines (\n) text area , convert them <br />. fiddle: https://jsfiddle.net/62bfv61d/1/ should work you.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

java - POJO with list of POJO to JSON display size and index -

objective c - Deep Linking for iOS Apps which are not installed yet? -