Skip to main content

sanitize_summary

Function sanitize_summary 

Source
pub fn sanitize_summary(raw: &str) -> Option<String>
Expand description

Rich-content spec §1.2: what the agent is on (toast_line) as a single line — controls and bidi stripped, whitespace collapsed, capped at 90 characters. A summary that trips the jekt keyword list is dropped, not replaced: it is decoration, not something the user needs to be told is hidden.