html

package
v0.0.0-...-1fb2453 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrowLeftDark

func ArrowLeftDark() template.HTML

func ArrowLeftLight

func ArrowLeftLight() template.HTML

func ArrowRightDark

func ArrowRightDark() template.HTML

func ArrowRightLight

func ArrowRightLight() template.HTML

func ExternalIcon

func ExternalIcon() template.HTML

func FileIcon

func FileIcon() template.HTML

func GenerateSecurityNonce

func GenerateSecurityNonce() (string, error)

GenerateSecurityNonce generates a cryptographically secure random nonce. A nonce is used in the web browser's Content Security Policy (CSP) to allow specific inline styles and scripts, helping to prevent Cross-Site Scripting (XSS) attacks.

func GetProductIcon

func GetProductIcon(p product.Product) template.HTML

func GetProductIconDisabled

func GetProductIconDisabled(p product.Product) template.HTML

func GitHubIcon

func GitHubIcon() template.HTML

func IdxMinusOne

func IdxMinusOne(n int) int

func LessonIcon

func LessonIcon() template.HTML

func MarkdownToHTML

func MarkdownToHTML(md string) template.HTML

func ScanAnimation

func ScanAnimation() template.HTML

func SeverityIcon

func SeverityIcon(issue snyk.Issue) template.HTML

func TrimCWEPrefix

func TrimCWEPrefix(cwe string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL