Strip line-breaks via callback
string Core_Email::_remove_nl_callback( )
string
protected function _remove_nl_callback($matches)
{
if (strpos($matches[1], "\r") !== false || strpos($matches[1], "\n") !== false)
{
$matches[1] = str_replace(array("\r\n", "\r", "\n"), '', $matches[1]);
}
return $matches[1];
}