htmlfilter

package module
v0.0.0-...-042ca66 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExceedsTextMessageLength  = errors.New("exceeds text message length")
	ErrExceedsImageMessageLength = errors.New("exceeds image message length")
)

Functions

func Filter

func Filter(text string, options *Options) (filtered string, err error)

Filter text according to options.

Types

type Options

type Options struct {
	StripHTML             bool
	MaxTextMessageLength  int
	MaxImageMessageLength int
}

Jump to

Keyboard shortcuts

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