I am trying to find a good way to parse the input from a textarea into HTML (including line breaks etc) Basically the user needs to be able to not enter markup in order to keep the format they enter their data in.
For instance if they enter:
Here is some text
Here is some more text
I need it to come out like that...not like
Here is some textHere is some more text
I know sites like LiveJournal and other blogging sites are able to do this, i just have no idea where to look. It almost seems like something that needs to be done pre-submit in the browser since form submission seems to lose the formatting.
Thanks for any help!