htmlfilter

package
v0.0.0-...-3c6ff54 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 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