pub fn decode_named(name: &str) -> Option<&'static str>Expand description
Decode a named HTML entity to its character(s).
Accepts the entity name without the leading & and trailing ;.
Returns None for unknown entity names.
ยงExamples
use fhp_core::entity::decode_named;
assert_eq!(decode_named("amp"), Some("&"));
assert_eq!(decode_named("lt"), Some("<"));
assert_eq!(decode_named("nonexistent"), None);