Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward slash in link has been escaped to / #32

Closed
Baoyx007 opened this issue Mar 16, 2023 · 1 comment
Closed

forward slash in link has been escaped to / #32

Baoyx007 opened this issue Mar 16, 2023 · 1 comment
Assignees

Comments

@Baoyx007
Copy link

examples:

[https://docker.nju.edu.cn/](https://link.zhihu.com/?target=https%3A//docker.nju.edu.cn/)
@Baoyx007 Baoyx007 changed the title forward slash in link has been escaped forward slash in link has been escaped to / Mar 16, 2023
@sywhb
Copy link
Collaborator

sywhb commented Mar 31, 2023

Hey @Baoyx007, sorry for the delay in reply.

All variables in the template are HTML-escaped by default. If you want to render unescaped HTML, use the triple mustache: {{{name}}}. You can also use & to unescape a variable.

So for your example, you could use[{{{originalUrl}}}] in your template to unescape the URL when rendering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants