@budibase/shared-core 3.27.3 → 3.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/helpers.d.ts +6 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
|
@@ -27,3 +27,9 @@ export declare const getUserColor: (user: User) => string;
|
|
|
27
27
|
export declare const getUserLabel: (user: User) => string;
|
|
28
28
|
export declare function cancelableTimeout(timeout: number): [Promise<unknown>, () => void];
|
|
29
29
|
export declare function withTimeout<T>(timeout: number, promise: () => Promise<T>): Promise<T>;
|
|
30
|
+
/**
|
|
31
|
+
* Escapes HTML special characters in a string to prevent XSS attacks.
|
|
32
|
+
* @param str the string to escape
|
|
33
|
+
* @return the escaped string safe for use in HTML
|
|
34
|
+
*/
|
|
35
|
+
export declare const escapeHtml: (str: string | undefined | null) => string;
|