Remove the closing slash and add EOL in CSS output in Autoptimize

Remove the closing slash and add EOL in CSS output in Autoptimize on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'autoptimize_filter_css_bodyreplacementpayload', function( $html ){
    return str_replace( '/>', '>' . PHP_EOL , $html );
});