Discover Packages
github.com/AdamIsrael/ghost
internal
textsafe
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Oct 29, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package textsafe makes untrusted text (PR titles, bodies, agent output)
safe to print to a terminal.
Clean normalizes CRLF to LF, expands tabs, and drops every other control
character — including ESC, so the text cannot inject terminal escape
sequences, and CR, which would redraw from the line start.
Line is Clean for single-line fields: newlines become spaces.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.