export const htmlentities = (str: string): string => String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"');