export const escape = (str: string): string => { try { return str.replace(/&/g, '&').replace(//g, '>') } catch (ee: any) { console.error(ee) } return str } export const unescape = (str: string): string => str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>')