safehtml

package
v0.2.680 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const InnocuousPropertyName = "zTemplUnsafeCSSPropertyName"

InnocuousPropertyName is an innocuous property generated by a sanitizer when its input is unsafe.

View Source
const InnocuousPropertyValue = "zTemplUnsafeCSSPropertyValue"

InnocuousPropertyValue is an innocuous property generated by a sanitizer when its input is unsafe.

Variables

This section is empty.

Functions

func SanitizeCSS

func SanitizeCSS(property, value string) (string, string)

SanitizeCSS attempts to sanitize CSS properties.

func SanitizeCSSProperty added in v0.2.619

func SanitizeCSSProperty(property string) string

func SanitizeCSSValue added in v0.2.619

func SanitizeCSSValue(property, value 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