Skip to main content

clean_text

Function clean_text 

Source
pub(crate) fn clean_text(s: &str) -> Option<String>
Expand description

A post’s text as it is kept: control characters other than line breaks become spaces, lines are trimmed, blank runs dropped, at most MAX_LINES lines and MAX_TEXT characters. None when empty.