Skip to content
jehna edited this page Jul 21, 2013 · 1 revision

Description: Add universal line break expression

Example: The following converts all line breaks to unix-style with <br> tag:

var lorem = "Lorem ipsum.\r\nDolor sit\namet."
lorem = VerEx().lineBreak().replace( lorem, "<br>\n" );

/* Outputs:
Lorem ipsum.<br>
Dolor sit<br>
amet.
*/
Clone this wiki locally