Hello, I have encountered a bug in Cornerstone.
I am attempting to add an html string as secondary button text. When I paste the string directly into the Secondary Button Text field, the output works as expected:

But when I save that same html string in a ACF Pro option field, and then use Cornerstone’s Dynamic Content to place that string in the Secondary Button Text field, it creates a very strange output:

Here is the frontend output when I enter the string directly:
<a class="x-anchor x-anchor-button e3340-17 m2ks-1c m2ks-1d m2ks-1e watch-video-button-large" tabindex="0" href="/" style="outline: none;">
<div class="x-anchor-content">
<div class="x-anchor-text">
<span class="x-anchor-text-secondary">
<svg>/* ...full html string omitted... */</svg>
</span>
<span class="x-anchor-text-primary">Watch Video</span>
</div>
</div>
</a>
And here is the output when I use the dynamic content to enter the same string:
<a class="x-anchor x-anchor-button e3340-17 m2ks-1c m2ks-1d m2ks-1e watch-video-button-large" tabindex="0" style="--tco-dc2ks-0:<svg>/* ...full html string omitted... */</svg>; outline: none;" href="/">
<div class="x-anchor-content">
<div class="x-anchor-text">
<span class="x-anchor-text-secondary">
<svg>/* ...full html string omitted... */</svg>
</span>
<span class="x-anchor-text-primary">Watch Video</span>
</div>
</div>
For brevity I have omitted the full string. But in reality, in the second example it is printing the entire string into the style attribute on the <a> element, which breaks the style attribute because it is obviously not valid CSS.
Thankfully this is not a critical error, because the style attribute is not very important in this case. By default Cornerstone outputs a simple style="outline: none;" for all anchor elements. I can easily do without this, but it is troubling having that whole SVG string printed out, even if it isn’t technically breaking my site.
I consider this to be a bug because if I enter the html string into the Secondary Text field directly, this issue does not arise. It’s only when I use the Dynamic Content -> ACF Option Field that this happens, so it must be something to do with how Cornerstone is handling the ACF integration.
Let me know what you find out. Or if you need any assistance in replicating this.
Thanks!
