How can i get tag without />?

Capture all the wp_head content

add_action( 'wp_head', function(){
    ob_start();
}, 0);

Replace endings and output results

add_action( 'wp_head', function(){
    $head = ob_get_clean();
    echo str_replace('/>', '>', $head);
}, 99999);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)