Yoast breadcrumbs no separator

I was working on a project where I wanted to use WordPress Yoast SEO plugin breadcrumbs, but don’t wanted to use a string separator. I wanted to style <span>’s in the breadcrumb with a right CSS border radius.

I wrote this hook to remove the seperator:

// Filter hook Yoast seo breadcrumbs no seperator
function no_separator( $output ) {
 $replace = array( '&raquo;' );
 $output = str_replace( $replace, '', $output );
 return $output;
}
add_filter('wpseo_breadcrumb_single_link_with_sep', 'no_separator');