Break to newline

function br2nl($html) {
    if ($html) {
        return preg_replace('/<brs?/?>/i', "rn", $html);
    }
}
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp