mirror of
https://github.com/SomboChea/ui
synced 2024-06-30 06:56:23 +07:00
13 lines
179 B
JavaScript
13 lines
179 B
JavaScript
/**
|
|
* @prettier
|
|
* @flow
|
|
*/
|
|
// $FlowFixMe
|
|
import parseXSS from 'xss';
|
|
|
|
export function preventXSS(text: string) {
|
|
const encodedText = parseXSS(text);
|
|
|
|
return encodedText;
|
|
}
|