function decodeHTML(str, mode = DecodingMode.Legacy) {
    return htmlDecoder(str, mode);
}
Decodes an HTML string.

@param str The string to decode.
@param mode The decoding mode.
@returns The decoded string.