+ Start a Discussion

handling apex:inputTextarea visualforce page value in apex class

I developed a visualforce page which has Text area field. When I tried to pass the value to string variable in a class it is not handling newline character.


for example: if I enter a text below in the visualforce page text aera field


"Hello sir,


how are you





if I try to print it in a class it prints as  "Hello sir,how are you Thanks" 


Can anyone help me in this.