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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -