glentities/decoder
Functions
pub fn decode_dec(entity: String) -> String
Decode given entity (without surrounding &#
and ;
) as decimal entity. Returns original if cannot be decoded.
pub fn decode_hex(entity: String) -> String
Decode given entity (without surrounding &#x
and ;
) as hex entity. Returns original if cannot be decoded.
pub fn decode_named(entity: String) -> String
Decode given entity (without surrounding &
and ;
) as a named entity. Returns original if it doesn’t match any entity name.