1

I'm copying data from RichText Area field to Text Area field,When I copied in Text area field,The data is displaying with HTML tags. So used below code to convert,

String.replaceAll('\\<.*?\\>', '');

It is working fine,but now I want to start new line after .(dot) symbol.

1
  • Did you solve your problem? Jul 28, 2014 at 13:37

1 Answer 1

2

You can use the newline \n character to insert a new line in a text area field.

Something like the following should work:

String.replace('.', '.\n');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.