Skip to main content

safe_content_preview

Function safe_content_preview 

Source
fn safe_content_preview(content: &str, max_len: usize) -> String
Expand description

Safely formats content for display in hook output.

If content is a slash command, returns a placeholder to prevent injection detection triggers. Otherwise returns truncated content.