1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-07-02 07:49:43 +07:00
verdaccio-ui/src/webui/utils/sec-utils.js

13 lines
179 B
JavaScript
Raw Normal View History

2019-02-03 17:23:33 +07:00
/**
* @prettier
* @flow
*/
// $FlowFixMe
import parseXSS from 'xss';
export function preventXSS(text: string) {
const encodedText = parseXSS(text);
return encodedText;
}