Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTMLToText ¶
HTMLToText converts an HTML string to readable terminal text. Links become clickable OSC 8 hyperlinks, truncated to width with "…". Block elements, lists, and entities are converted to clean plain text. Pass width <= 0 to skip link truncation.
func MakeHyperlink ¶
MakeHyperlink creates a terminal hyperlink using OSC 8 escape sequences. This allows URLs to be clickable without displaying the full URL text. Most modern terminals support this standard (iTerm2, Konsole, GNOME Terminal, Windows Terminal, etc.)
func TruncateText ¶
TruncateText truncates s to maxLen runes, appending "…" if truncated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.