- strip_tags: documentation ( source)
<?php
$content = '<br><br ><br/><br />';
$with_slash = strip_tags( $content, '<br />' );
$without_slash = strip_tags( $content, '<br>' );
echo "With slash:\n'$with_slash'\n\n";
echo "Without slash:\n'$without_slash'\n\n";
echo 'Correct: ' . ( '' === $with_slash ? 'Without slash' : 'With slash' );