Function teloxide::utils::html::escape

source ·
pub fn escape(s: &str) -> String
Expand description

Escapes the string to be shown “as is” within the Telegram HTML message style.

Does not escape ’ and “ characters (as should be for usual HTML), because they shouldn’t be escaped by the spec.