mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 02:59:31 +08:00
12 lines
447 B
Text
12 lines
447 B
Text
/**
|
||
* Decode a single character reference (without the `&` or `;`).
|
||
* You probably only need this when you’re building parsers yourself that follow
|
||
* different rules compared to HTML.
|
||
* This is optimized to be tiny in browsers.
|
||
*
|
||
* @param {string} value
|
||
* `notin` (named), `#123` (deci), `#x123` (hexa).
|
||
* @returns {string|false}
|
||
* Decoded reference.
|
||
*/
|
||
export function decodeNamedCharacterReference(value: string): string | false
|