Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinWithConjunction ¶
JoinWithConjunction joins a slice of strings with commas except for the last two which are joined with "and".
func UISanitize ¶ added in v2.25.0
UISanitize sanitizes a string for display in the UI. The following transformations are applied, in order: - HTML tags are removed using bluemonday's strict policy. - ANSI escape codes are stripped using stripansi. - Consecutive backslashes are replaced with a single backslash. - Non-printable characters are removed. - Whitespace characters are replaced with spaces. - Multiple spaces are collapsed into a single space. - Leading and trailing whitespace is trimmed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.