mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 03:39:29 +08:00
14 lines
345 B
Text
14 lines
345 B
Text
/**
|
|
* Turn the number (in string form as either hexa- or plain decimal) coming from
|
|
* a numeric character reference into a character.
|
|
*
|
|
* @param {string} value
|
|
* Value to decode.
|
|
* @param {number} base
|
|
* Numeric base.
|
|
* @returns {string}
|
|
*/
|
|
export function decodeNumericCharacterReference(
|
|
value: string,
|
|
base: number
|
|
): string
|