Module tenlib.transform.html
Functions
def encode(data: str) ‑> str
-
Encodes HTML entities.
b'ABC&DEF'
->'ABC&DEF'
def decode(data: str) ‑> str
-
Decodes HTML entities.
b'ABC&DEF GHI'
->'ABC&DEF GHI'
def encode_all(data: bytes) ‑> str
def encode_all_dec(data: bytes) ‑> str
def read(data: str) ‑> str
-
Decodes HTML entities.
b'ABC&DEF GHI'
->'ABC&DEF GHI'
def write(data: str) ‑> str
-
Encodes HTML entities.
b'ABC&DEF'
->'ABC&DEF'