function _quotes_escape_newlines in Quotes 5
Same name and namespace in other branches
- 6 quotes.admin.inc \_quotes_escape_newlines()
- 7 quotes.admin.inc \_quotes_escape_newlines()
Scans a string of text to remove new line chracters.
Parameters
$text: The text to be scanned.
Return value
The text with newlines escaped.
1 call to _quotes_escape_newlines()
- quotes_export in ./
quotes.module - Export function page.
File
- ./
quotes.module, line 1799
Code
function _quotes_escape_newlines($text) {
// Get rid of Windows crap.
$text = str_replace("\r", '', $text);
return str_replace("\n", "\\\n", $text);
}