Function rphtml::entity::decode_chars
source · [−]Expand description
Decode character list, replace the entity characters into a unicode character.
Examples
use htmlentity::entity::*;
let char_list = vec!['<'];
assert_eq!(decode_chars(&"<".chars().collect::<Vec<char>>()), char_list);
assert_eq!(decode_chars(&"<".chars().collect::<Vec<char>>()), char_list);
assert_eq!(decode_chars(&"<".chars().collect::<Vec<char>>()), char_list);