Function rphtml::entity::decode [−][src]
pub fn decode(content: &str) -> String
Decode a html code’s entities into unicode characters, include the Decimal
Hex
Named
.
Examples
use htmlentity::entity::*; let content = "<"; assert_eq!(decode("<"), content); assert_eq!(decode("<"), content); assert_eq!(decode("<"), content);