How to filter $content in shortcode function

I solved my own issue.

I needed to filter out all the <br> and white space between my shortcode tags. WP was auto adding breaks which my functions was adding to the output of my shortcode. So I used the strip tags function to filter the $content of my shortcode

$content =  strip_tags($content);

I added this to my shortcode function and it worked like a charm!

Thanks to the people who pointed out the potential issues with the previous answer.