12 lines
426 B
TypeScript
12 lines
426 B
TypeScript
/**
|
|
* Copyright © 2023 650 Industries.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/**
|
|
* Replaces unsafe characters in a string with their escaped equivalents. This is to safely
|
|
* embed data in an HTML context to prevent XSS.
|
|
*/
|
|
export declare function escapeUnsafeCharacters(str: string): string;
|
|
//# sourceMappingURL=html.d.ts.map
|