how to get excerpt without p html tag from wordpress post

Please add below code in theme functions.php

remove_filter( 'the_excerpt', 'wpautop' );