-
Couldn't load subscription status.
- Fork 0
ProtoString newlineToBreak() Method
Seth Clydesdale edited this page Jun 5, 2015
·
1 revision
Converting newlines into breaks.
'Coffee\nCream\nSugar'.newlineToBreak(); // returns 'Coffee<br/>Cream<br/>Sugar'The newlineToBreak method converts newline characters into HTML break tags. This can be used to format text that contains newline characters for insertion into a DOM node.
String.newlineToBreak();Home • History • ProtoString • Created by Seth Clydesdale