Expand description
The library main module.
Structs§
- Char
Entity - CharEntity struct
- Data
Iter - Decoded
Data - DecodedData, impl the ICodedDataTrait and IBytesTrait and IntoIterator.
- Encoded
Data - EncodedData, impl the ICodedDataTrait and IBytesTrait and IntoIterator.
- Entity
- Entity struct
Enums§
- Character
Set - The character set that needs to be encoded to html entity.
- Encode
Type - EncodeType: html entity encoding format
- Entity
Type - Html
Entity Error
Traits§
- IBytes
Trait - ICoded
Data Trait - ICodedDataTrait
Functions§
- decode
- Decode html entities in utf-8 bytes.
- decode_
chars - Decode the html entities in the character list.
- decode_
chars_ to - Similar to the
decode_charsmethod, but directly writes the character data into the last parameter passed in. - decode_
to - Similar to the
decodemethod, but directly writes the byte data into the last parameter passed in. - encode
- Encode characters in the utf-8 bytes into html entities according to the specified encoding format and specified encoding character set.
- encode_
char - Encode character into html entity.
- encode_
chars_ with - Encode a list of characters using a filter function.
- encode_
to - Similar to the
encodemethod, but directly writes the byte data into the last parameter passed in. - encode_
with - Encode the html entities in utf-8 bytes into encoded data, and specify the characters to be encoded and the encoding format through the
filter_fnmethod parameter. - encode_
with_ to - Similar to the
encode_withmethod, but directly writes the byte data into the last parameter passed in.