string

package
v0.0.0-...-c75e901 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidXmlTagNameError = errors.New("invalid xml tag name")

	InvalidAttribNameError = errors.New("invalid xml attribute name")
)
View Source
var (

	// Slug filter takes a string or bytes string and filters it using given pattern
	Slug ecmsGoFilter.Filter = GetPatternFilter(slugRegex, slugReplacement)
)

Functions

func GetPatternFilter

func GetPatternFilter(pattern *regexp.Regexp, replacement []byte) ecmsGoFilter.Filter

GetPatternFilter returns a filter that filters strings and bytes-strings using pattern

and replacement passed in.

func GetStripHtmlTags

func GetStripHtmlTags(tagNames [][]byte) ecmsGoFilter.Filter

GetStipHtmlTags returns a filter function that can be used to stip specific html tags from content containing html tags/markup. Note: Only opening and closing tags are supported; Self closing tags are not supported; Tags containing attributes that contain json stringified values have, also, not been tested.

func GetStripPopulatedHtmlAttribs

func GetStripPopulatedHtmlAttribs(attribNames [][]byte) ecmsGoFilter.Filter

func LowerCase

func LowerCase(xs interface{}) interface{}

func StripHtmlComments

func StripHtmlComments(x interface{}) interface{}

func Trim

func Trim(xs interface{}) interface{}

func XmlEntities

func XmlEntities(x interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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