Skip to main content

encode_entities

Function encode_entities 

Source
pub fn encode_entities(s: &str, escape_quotes: bool) -> String
Expand description

Encodes the characters <, > and & in a string as HTML entities. If escape_quotes is true, the characters ' and " are additionally encoded.