Documentation
¶
Index ¶
- Variables
- func GetPatternFilter(pattern *regexp.Regexp, replacement []byte) ecmsGoFilter.Filter
- func GetStripHtmlTags(tagNames [][]byte) ecmsGoFilter.Filter
- func GetStripPopulatedHtmlAttribs(attribNames [][]byte) ecmsGoFilter.Filter
- func LowerCase(xs interface{}) interface{}
- func StripHtmlComments(x interface{}) interface{}
- func Trim(xs interface{}) interface{}
- func XmlEntities(x interface{}) interface{}
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 StripHtmlComments ¶
func StripHtmlComments(x interface{}) interface{}
func XmlEntities ¶
func XmlEntities(x interface{}) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.