We have a automation, that sends content of a comment via email. However, if comment contains URL, it is displayed as [https://www.google.com/|https://www.google.com] Is there a workaround to solve that?
Hi @Darius Lingevičius & welcome to the community,
For URL via email, you need to use HTML. So the above URL should be added as:
<a href="https://www.google.com/">https://www.google.com</a>
Use the .replace for the comment, like this
{{comment.body.replace("[","<a href=\"").replace("|","\">").replace("]","</a>")}}
This will replace
[ → <a href="| → ">] → </a>
Good luck,Rudy
It looks like you're new here. Sign in or register to get started.