function _taxonomy_csv_set_line_break in Taxonomy CSV import/export 6.5
Same name and namespace in other branches
- 7.5 taxonomy_csv.api.inc \_taxonomy_csv_set_line_break()
Remove escapes carriage return and linefeed.
This function is used for description field of terms and allows to import a multiline text.
Parameters
$string: String to update.
Return value
Updated string.
1 call to _taxonomy_csv_set_line_break()
- taxonomy_csv_line_import in import/
taxonomy_csv.import.line.api.inc - Process the import of items.
File
- ./
taxonomy_csv.api.inc, line 443 - Manage variables and features of module.
Code
function _taxonomy_csv_set_line_break($string) {
return str_replace(array(
'\\r',
'\\n',
), array(
"\r",
"\n",
), $string);
}