package
3.9.0+incompatible
Repository: https://github.com/documize/community.git
Documentation: pkg.go.dev
# Functions
BeautifyFilename takes a filename and attempts to turn it into a readable form, as TitleCase natural language, suitable for the top level of a Document.
CleanDBValue returns like query minus dodgy characters.
Conjoin returns "Suzzane, Fatima and Brian" from string of items.
EscapeHTMLcomplexChars looks for "complex" characters within HTML and replaces them with the HTML escape codes which describe them.
EscapeHTMLcomplexCharsByte looks for "complex" characters within HTML and replaces them with the HTML escape codes which describe them.
MakeInitials returns user initials from firstname and lastname.
MakeSlug creates a slug, suitable for use in a URL, from a string.
Words returns a slice of words, where each word contains no whitespace, and each item of punctuation is its own word.
# Type aliases
HTML describes a chunk of HTML, Text() method returns plain text.