<?php
add_filter( 'facetwp_assets', function( $assets ) {
FWP()->display->json['expand'] = '<span>expand</span>';
FWP()->display->json['collapse'] = '<span>collapse</span>';
// Return the same thing (since we're hijacking this hook)
return $assets;
});