PHPMailer::normalizeBreaks
Normalize line breaks in a string.
Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format. Defaults to CRLF (for message bodies) and preserves consecutive breaks.
Signature
public function normalizeBreaks(string
$text,
[string
$breaktype = "\r\n"] )
Parameters
$text
— string$breaktype
— string
What kind of line break to use, defaults to CRLF
Returns
- string