conv_unescape_nl 함수 추가

This commit is contained in:
chicpro
2014-03-14 21:29:20 +09:00
parent e9d3de1859
commit 95267cb88b

View File

@ -2615,4 +2615,13 @@ function conv_date_format($format, $date, $add='')
return date($format, $timestamp);
}
// unescape nl 얻기
function conv_unescape_nl($str)
{
$search = array('\\r', '\\n', '\r');
$replace = array('', '\n', '');
return str_replace($search, $replace, $str);
}
?>