Filter function utilising strip_shortcodes() function not working

Hey everyone!

I’m trying to export posts from other site to newly redesigned one.

The person who made the site I’m exporting from used VC to structure the frontend :frowning:
So what I was thinking about doing is adding a filter function to ‘the_content’ and using the strip_shortcodes() function, getting the post ID and than using wp_insert_post() to update the said post.

So far I’ve got this:

function cleanVC($content) {
	$content = strip_shortcodes($content);
	echo "test";
	return $content;
}

add_filter('the_content', __NAMESPACE__ . '\\cleanVC',1,1); 

in my /lib/customizer.php The echo is just for testing purposes and it geets printed out. however the strip_shortcodes doesn’t seem to work on the given string.

Any ideas?