Break to newline

function br2nl($html) {
    if ($html) {
        return preg_replace('/<brs?/?>/i', "rn", $html);
    }
}