function _taxonomy_csv_escape_line_break in Taxonomy CSV import/export 6.5
Same name and namespace in other branches
- 7.5 taxonomy_csv.api.inc \_taxonomy_csv_escape_line_break()
Escapes carriage return and linefeed.
This function is used for description field of terms and allows to get only one csv line for one term.
Parameters
$string: String to update.
Return value
Updated string.
1 call to _taxonomy_csv_escape_line_break()
- taxonomy_csv_term_export in export/
taxonomy_csv.export.api.inc - Export a term to a line matching the options.
File
- ./
taxonomy_csv.api.inc, line 424 - Manage variables and features of module.
Code
function _taxonomy_csv_escape_line_break($string) {
return str_replace(array(
"\r",
"\n",
), array(
'\\r',
'\\n',
), $string);
}