Skip to main content

message_text

Function message_text 

Source
pub fn message_text(text: &str) -> String
Expand description

The text of a message to the client: control characters removed, cut to at most MAX_MESSAGE_BYTES on a character boundary (a client-chosen path can put a multi-byte character across the cut), and ending in a newline.