pub fn encode(text: String) -> String
Encode text using named HTML entities, except newline and tab. Characters without a named entity are untouched.