validation

package
v0.0.0-...-93bdfb3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2024 Owen Waller. All rights reserved.

Index

Constants

View Source
const (
	Control     = 'C'
	Math        = 'M'
	Number      = 'N'
	Letter      = 'L'
	Punctuation = 'P'
	Symbol      = 'S'
	Separator   = 'Z'
)

Variables

This section is empty.

Functions

func AcceptAllUnicodeExceptControl

func AcceptAllUnicodeExceptControl(s string) bool

func AcceptUnicodeLettersSpacesPunctuation

func AcceptUnicodeLettersSpacesPunctuation(s string) bool

func EscapeHTML

func EscapeHTML(s string) string

func RemoveEmailHeaders

func RemoveEmailHeaders(s string) string

func RemoveEscapeSequences

func RemoveEscapeSequences(s string) string

func RemoveScriptTagsAndContents

func RemoveScriptTagsAndContents(s string) string

func ValidateAsEmail

func ValidateAsEmail(s string) bool

func ValidateAsRestrictedText

func ValidateAsRestrictedText(s string) bool

func ValidateAsUnrestrictedText

func ValidateAsUnrestrictedText(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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