## Lesson — When outputting text sourced from external files, PR

**Tags:** security, cli, terminal

When outputting text sourced from external files, PR content, or LLMs to the terminal, use sanitization functions to prevent terminal injection attacks. This prevents malicious content from executing escaped sequences that could manipulate the terminal state or compromise the user's environment.
