paw.Link{
Url: "/",
Name: "Button Style",
}.Button().Success()
Button Stylehttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
Url supports 2 types:
- string: suitable for the vast majority of common cases.
- template.URL: template.URL encapsulates a known safe URL or URL substring (see RFC 3986).
A URL like `javascript:checkThatFormNotEditedBeforeLeavingPage()`
from a trusted source should go in the page, but by default dynamic
`javascript:` URLs are filtered out since they are a frequently
exploited injection vector.
Use of this type presents a security risk:
the encapsulated content should come from a trusted source,
as it will be included verbatim in the template output.
tel:+123456789paw.Link{
Icon: "telephone-forward",
Url: template.URL("tel:+123456789"),
}paw.Link{
Url: template.URL(`<script>alert("no xss")</script>`),
}paw.Link{
Url: template.URL(`custom_schema://123`),
}paw.Link{
Icon: "exclamation-triangle-fill",
Url: template.URL(`javascript:alert("test")`),
}