WordPress Custom Post Type and Shortcode for Portfolio Items

Here is the right way of removing the anchor tag.

$lis .= sprintf(
'<div class="https://wordpress.stackexchange.com/questions/345915/%s"> %s <h4>%s</h4><p>%s</p></div>',
esc_attr( $col_class ),
get_the_post_thumbnail( $post_id, 'thumbnail', array('class' => 'pull-left portfolio-thumb img-circle') ),
get_the_title(),
get_the_excerpt()
);