Shortcode not working when I output data from wpdb html table row

Oh, I didn’t thought it would be that easy.

So when I am storing the html in a variable “$htmlContent” and echo the variable in my template I can just wrap the variable in the do_shortcode() function

echo do_shortcode($htmlContent);

Maybe this answer are useful for other with the same problem.