escape.d.ts 252 B

12345678910111213
  1. /**
  2. * 转义HTML字符串,替换&, <, >, ", ', \`字符
  3. * @param str 字符串
  4. */
  5. export declare function escape(str: string): string;
  6. declare module './ctor' {
  7. interface XEUtilsMethods {
  8. escape: typeof escape;
  9. }
  10. }
  11. export default escape