function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vepakvepak 

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

 

Thanks"

 

 

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

 

Can anyone help me in this.

 

Thanks,

Vamsi.