![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Escape/unescape newlines for single-line CSV fields. More...

Static Public Member Functions | |
| static | escapeNewlines ($value) |
| Flatten real newlines to a literal so a field stays on one physical CSV line. Backslashes are escaped first so unescapeNewlines() can reverse the transform exactly, even if the text itself already contains a literal backslash-n sequence. More... | |
| static | unescapeNewlines ($value) |
| Reverse escapeNewlines(): literal becomes a real newline, any other escaped character is unescaped to itself. More... | |
Escape/unescape newlines for single-line CSV fields.
Definition at line 19 of file CustomTextEscaping.php.
|
static |
Flatten real newlines to a literal
so a field stays on one physical CSV line. Backslashes are escaped first so unescapeNewlines() can reverse the transform exactly, even if the text itself already contains a literal backslash-n sequence.
| string | null | $value |
Definition at line 29 of file CustomTextEscaping.php.
|
static |
Reverse escapeNewlines(): literal
becomes a real newline, any other escaped character is unescaped to itself.
| string | null | $value |
Definition at line 44 of file CustomTextEscaping.php.