20 lines
406 B
TypeScript
20 lines
406 B
TypeScript
![]() |
import { XEUtilsMethods } from '../xe-utils'
|
|||
|
|
|||
|
/**
|
|||
|
* 转义HTML字符串,替换&, <, >, ", ', \`字符
|
|||
|
* @param str 字符串
|
|||
|
*/
|
|||
|
export declare function escape(str: string): string;
|
|||
|
|
|||
|
declare module '../xe-utils' {
|
|||
|
interface XEUtilsMethods {
|
|||
|
/**
|
|||
|
* 转义HTML字符串,替换&, <, >, ", ', \`字符
|
|||
|
* @param str 字符串
|
|||
|
*/
|
|||
|
escape: typeof escape;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
export default escape
|