ui

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// NewLine contains a new line
	NewLine = []byte{'\n'}
)

Functions

func EscapeAllHTMLTags added in v0.3.3

func EscapeAllHTMLTags(in string) string

EscapeAllHTMLTags will escape all html tags in the text

func EscapeNonASCII

func EscapeNonASCII(in string) string

EscapeNonASCII replaces tabs and other non-printable characters with a "\x01" form of hex escaping. It works on a byte-by-byte basis.

func StripHTML

func StripHTML(msg []byte) (out []byte)

StripHTML removes all html in the text

func StripSomeHTML added in v0.3.2

func StripSomeHTML(msg []byte) (out []byte)

StripSomeHTML removes the most common html presentation tags from the text

func UnescapeNewlineTags added in v0.3.8

func UnescapeNewlineTags(msg []byte) (out []byte)

UnescapeNewlineTags will remove all newline tags and replace them with actual newlines

func UnescapeNonASCII

func UnescapeNonASCII(in string) (string, error)

UnescapeNonASCII undoes the transformation of escapeNonASCII.

Types

This section is empty.

Jump to

Keyboard shortcuts

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