sanitize

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sanitize implements detection and/or removal of unwanted characters in strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterStrings

func FilterStrings(customCharsets []string) (sanitizedCharsets, badCharsets []string)

FilterStrings removes bad runes from customCharsets, returning the result with the violating strings. sanitizedCharsets is customCharsets with all nonprintable or mark runes removed. badCharsets is the strings in customCharsets that contained such runes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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