sanitize.d.ts 401 B

123456789
  1. /**
  2. * Replaces all spaces with the Unicode No-break space.
  3. * ref: http://www.fileformat.info/info/unicode/char/a0/index.htm
  4. *
  5. * IE would otherwise collapse all spaces into one. This is useful
  6. * e.g. in tests when you want to compare the actual DOM text content
  7. * without having to add the unicode character in the place of all spaces.
  8. */
  9. export declare function sanitize(text: string): string;