So I have a scripting token that is pulling a unique URL off the Opportunity object and I want to then use that URL for the hyperlink on the button in the email. However something is breaking the HTML code from the button and ends up displaying the URL and then the broken code for the button. Below is a screenshot of what it is doing, I had to block out the URL because it's a unique link related to each opportunity.
Thanks for helping with this. And I think I am understanding what your code is doing, but again having to just learn this on my own with no coding background has been interesting and challenging.
However I was able to figure out the issue, and though my code wasn't optimal, it wasn't the code. For some reason, the value that SFDC was giving me for this field was already a hyperlink (I am meeting with the SFDC team to understand why this was a hyperlink and not just a URL like I was expecting it to be). So what was happening is I was trying to use a hyperlink inside a hyperlink.
So the HTML on my email ends up looking like this:
<a href="<a href="https://www.unique-link.com">Click Me</a>">Click Me</a>
Which of course breaks things and results in the images in my original post.
Again thanks though for your help!