Hello,
I am trying to get a shortcode that can render anchor tags in a way I need.
In the shortcode “link.html” I have the following:
{{ if eq (index .Params 0) "signup" }}
<а href="/manage/register" {{ if eq (index .Params 2) "nofollow" }}rel="nofollow"{{ end }} data-turbolinks="false">{{ index .Params 1 }}</а>
{{ end }}
And in the content I have:
---
title: WEB
buttons:
- text: Learn more
section: docs
classes: outlined primary
image: WEB
weight: 1
---
{{% link signup "Sign up here" nofollow %}} <br>
{{< link signup "Sign up here" nofollow >}} <br>
The problem is that none of the shortcode usage in the content produces anchor tag. Instead it escapes it and I get the literal text “<а href=”/manage/register" rel=“nofollow” data-turbolinks=“false”>Sign up here</а>" instead of anchor tag. I really cant see if Im doing something wrong, or is there any way to force it to stop it from escaping HTML injected by shortcodes.