Module rphtml::entity[][src]

Structs

Entity

Entity struct

Enums

EncodeType

EncodeType: the output format type, default: NamedOrDecimal

EntityIn
EntitySet

The type of characters you need encoded, default: SpecialCharsAndNoASCII

Constants

NOOP

NOOP is the None value of Option<dyn Fn(char)->bool>

Functions

decode

Decode a html code’s entities into unicode characters, include the Decimal Hex Named.

decode_chars

Decode character list, replace the entity characters into a unicode character.

encode

Encode a html code’s characters into entities.

encode_char

Encode a character.

encode_default

Short for encode(content, EntitySet::default(), EncodeType::default())

encode_filter

Encode by filter functions. Use the filte_fn to choose the character need to encode. Use the exclude_fn to exclude characters you don’t want to use named.

encode_with

encode with the Encoder function.