mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:59:31 +08:00
11 lines
323 B
Text
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
|