Expand description
Turning command results into text or JSON for the terminal.
Functions§
- format_
json - format_
post_ submitted_ text - format_
posts_ text - format_
time_ millis - format_
trending_ text - render_
post_ html_ to_ text - Renders a hashiverse post body (the HTML subset produced by the web client or by
convert_text_to_hashiverse_html) as plain text: - sanitize_
for_ terminal - Makes untrusted text safe to print: control characters other than
\nand\t(ESC, CR, BEL, C1 controls, …) are replaced by their visible\u{…}escape, so they cannot drive the terminal (cursor moves, OSC 52 clipboard writes, title changes, overwriting lines).