package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Packages

# Functions

AmbiguousTablesForLocale provides the table of ambiguous characters for this locale.
DetectEncoding detect the encoding of content.
EscapeControlHTML escapes the unicode control sequences in a provided html document.
EscapeControlReader escapes the unicode control sequences in a provided reader of HTML content and writer in a locale and returns the findings as an EscapeStatus.
MaybeRemoveBOM removes a UTF-8 BOM from a []byte when opts.KeepBOM is false.
StreamHTML streams an html to a provided streamer.
ToUTF8 converts content to UTF8 encoding.
ToUTF8DropErrors makes sure the return string is valid utf-8; attempts conversion if possible.
ToUTF8WithFallback detects the encoding of content and converts to UTF-8 if possible.
ToUTF8WithFallbackReader detects the encoding of content and converts to UTF-8 reader if possible.

# Constants

RuneNBSP is the codepoint for NBSP.

# Variables

AmbiguousCharacters provides a map by locale name to the confusable characters in that locale.
UTF8BOM is the utf-8 byte-order marker.

# Structs

AmbiguousTable matches a confusable rune with its partner for the Locale.
BreakWriter wraps an io.Writer to always write '\n' as '<br>'.
EscapeStatus represents the findings of the unicode escaper.
HTMLStreamWriter acts as a writing sink.
PassthroughHTMLStreamer is a passthrough streamer.

# Interfaces

HTMLStreamer represents a SAX-like interface for HTML.