ui

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: GPL-3.0 Imports: 6 Imported by: 13

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

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 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