1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-21 10:51:38 +07:00
verdaccio-ui/src/utils/sec-utils.ts
2019-06-24 21:42:34 +01:00

8 lines
153 B
TypeScript

import parseXSS from 'xss';
export function preventXSS(text: string): string {
const encodedText = parseXSS.filterXSS(text);
return encodedText;
}