Documentation
¶
Index ¶
- func AddNonce(el *Element, len uint8) (string, error)
- func AddSha256HashExternal(el *Element, externalSha256Hash string) (string, error)
- func AddSha256HashInline(el *Element) (string, error)
- func RenderElement(el *Element) (template.HTML, error)
- func RenderElementToBuilder(el *Element, htmlBuilder *strings.Builder) error
- func RenderModuleScriptToBuilder(src string, htmlBuilder *strings.Builder) error
- type Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSha256HashExternal ¶
func AddSha256HashInline ¶
func RenderElementToBuilder ¶
Types ¶
type Element ¶
type Element struct {
Tag string `json:"tag,omitempty"`
Attributes map[string]string `json:"attributes,omitempty"`
AttributesKnownSafe map[string]string `json:"attributesKnownSafe,omitempty"`
BooleanAttributes []string `json:"booleanAttributes,omitempty"`
TextContent string `json:"textContent,omitempty"`
DangerousInnerHTML string `json:"dangerousInnerHTML,omitempty"`
SelfClosing bool `json:"-"`
}
func EscapeIntoTrusted ¶
Click to show internal directories.
Click to hide internal directories.