Urara-Blog/node_modules/.pnpm-store/v3/files/fd/d3a45565d9fea46b2b19cbae50e06196ee1cbd42e63228f31a3084890c3e49028c1124473127e7ceb8d24ed6745ba90e31755a24e4c5414892a5ca167ffb90
2022-08-14 01:14:53 +08:00

11 lines
323 B
Text

/**
* Encode only the dangerous HTML characters.
*
* This ensures that certain characters which have special meaning in HTML are
* dealt with.
* Technically, we can skip `>` and `"` in many cases, but CM includes them.
*
* @param {string} value
* @returns {string}
*/
export function encode(value: string): string