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
EscapeAllHTMLTags will escape all html tags in the text
func EscapeNonASCII ¶
EscapeNonASCII replaces tabs and other non-printable characters with a "\x01" form of hex escaping. It works on a byte-by-byte basis.
func StripSomeHTML ¶ added in v0.3.2
StripSomeHTML removes the most common html presentation tags from the text
func UnescapeNewlineTags ¶ added in v0.3.8
UnescapeNewlineTags will remove all newline tags and replace them with actual newlines
func UnescapeNonASCII ¶
UnescapeNonASCII undoes the transformation of escapeNonASCII.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.