Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultString ¶
func FirstNonEmpty ¶
func HTMLPlainText ¶ added in v1.0.0
HTMLPlainText renders an HTML fragment as terminal-readable plain text and escapes the result with SafeLines. Callers that emit JSON keep the original markup; only the presentation layer flattens it.
func SafeLine ¶ added in v1.0.0
SafeLine escapes newlines, ANSI ESC and other control bytes while keeping printable Unicode. Line-oriented terminal output uses it so upstream text cannot break the one-record-per-line protocol. JSON output stays untouched because encoding/json performs its own escaping.
Types ¶
This section is empty.