mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00:00
10 lines
192 B
JavaScript
10 lines
192 B
JavaScript
/**
|
|
* The smallest way to encode a character.
|
|
*
|
|
* @param {number} code
|
|
* @returns {string}
|
|
*/
|
|
export function formatBasic(code) {
|
|
return '&#x' + code.toString(16).toUpperCase() + ';'
|
|
}
|