escape.d.ts 406 B

12345678910111213141516171819
  1. import { XEUtilsMethods } from '../xe-utils'
  2. /**
  3. * 转义HTML字符串,替换&, <, >, ", ', \`字符
  4. * @param str 字符串
  5. */
  6. export declare function escape(str: string): string;
  7. declare module '../xe-utils' {
  8. interface XEUtilsMethods {
  9. /**
  10. * 转义HTML字符串,替换&, <, >, ", ', \`字符
  11. * @param str 字符串
  12. */
  13. escape: typeof escape;
  14. }
  15. }
  16. export default escape