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("&lt;"), content);
assert_eq!(decode("&#60;"), content);
assert_eq!(decode("&#x3c;"), content);