export const replaceHtmlTags = (str: string) => { return str .replace(/<\/p>/g, '\n') .replace(/ /g, '') .replace(/<[^>]*>?/gm, ''); };