Skip to content

How to add html tag inside trans directive?

I am trying to add html <a> tag inside {{trans''}} but, I am getting the wrong output.
Below is how I am trying to do it.

<div class="register-button">
    {{trans'<a href="%reset_password_url">Reset Password</a>'reset_password_url=$reset_password_url|raw}}
    </div>

And the output I am getting is below.

 tag is not visible in output

I need the output where <a> tag is visible inside output.

enter image description here

How can I achieve that output?