SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/es/text/sanitize.d.ts
2026-05-15 10:22:44 +08:00

10 lines
401 B
TypeScript

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