ReplaceLineEndings
ReplaceLineEndings function
| Method Prototype | Description
|
| Function ReplaceLineEndings(text As String, lineBreak As String) As String | replace all line endings in text
|
This function replaces all standard line endings — that is, Chr(10), Chr(13), or Chr(13)+Chr(10) — in the given text with the string you specify as the second parameter.
This can be used to normalize text from some unknown platform to a common line ending, or to replace line endings with something completely different (such as an HTML break).
See the
EndOfLine class for a convenient way to reference common line endings, which you are likely to need for the second parameter.