Site icon Hip-Hop Website Design and Development

Can I use a Shortcode output as an HTML attribute value?

Within a span, the shortcode output works:

<span>[sola_testimonials_count type='all']</span>

Result:
<span>5,205</span>

But as an attribute value, it doesn’t get parsed:

<span data-value="[sola_testimonials_count type='all']"></span>

Result:
<span data-value="[sola_testimonials_count type='all']"></span>

This is a third-party plug-in, but I obviously have the code and can manipulate it. Is there a way I can get the shortcode to parse as an HTML attribute value? I’m not a WordPress developer so forgive me if this is an obvious answer.

Many thanks!