pub fn get_entity_from_str(str: &str) -> Option<&'static str>
Expand description
Check if “&xxxx;” string is a valid HTML entity, return character it represents.
assert_eq!(get_entity_from_str("&"), Some("&"));
assert_eq!(get_entity_from_str("&xxx;"), None);