Strip br tags from wordpress

<?php $my_postid = $post->ID;
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$contentnew = preg_replace("//", '' , $content);
echo $contentnew;
?>

Cheers Bing Han.

Advertisements