pub fn to_entities(input: String, set: EntitySet) -> Result<String>
Replace applicable characters with named HTML entities from the specified entity set.
Unknown characters are left as-is.