The search and replace part of the function isn't working for some reason. Is my syntax wrong?
function display($data) {
$new = str_replace('<br />',"
",$data);
$newer = htmlspecialchars($new);
$search = array('<b>', '</b>', '<i>', '</i>', '<u>', '</u>', '
');
$replace = array('<b>', '</b>', '<i>', '</i>', '<u>', '</u>', '<br />');
$newest = str_replace($replace, $search, $newer);
return $newest;
}