export const sanitizeText = (text: string) => { return text .replace(/"/g, '"') .replace(/'/g, ''') .replace(//g, '>'); }; export const unescapeText = (text: string) => { return text .replace(/"/g, '"') .replace(/'/g, "'") .replace(/</g, '<') .replace(/>/g, '>') .replace(/&/g, '&'); }; const numberFormat = new Intl.NumberFormat('en-US'); export const formatNumber = (num: number) => numberFormat.format(num);