Hi all,
Basically i need to retrieve some text from a text area with all the formatting included. For example if the user types two paragraphs into the text area i want it to then be displayed back as two paragraphs and not all as one long line.
Any help with this??
Thanks,
J
2 replies to this topic
#1
Posted 20 July 2011 - 07:39 AM
|
|
|
#2
Posted 20 July 2011 - 08:45 AM
How does the text in it retrieve its formatting?
I mean, you're talking about bold , italics, ... formatting right? Or just paragraphs?
I don't see how the text in the textarea would suddenly loose all newlines....
Where do you need it by the way, Javascript?
I mean, you're talking about bold , italics, ... formatting right? Or just paragraphs?
I don't see how the text in the textarea would suddenly loose all newlines....
Where do you need it by the way, Javascript?
#3
Posted 12 August 2011 - 07:12 AM
I know this is in the html forum, but if you retreive it, you must do some server side coding.
If you are using PHP try to output it with the function nl2br()
If you are using PHP try to output it with the function nl2br()
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









