Add new lines and links to events calendar
What
Make new lines and links show up on events calendar.
How
Run dompurify on user input from Google sheets to remove dangerous inputs
Wrap links with tags and replace new lines with
Use setDangerouslyInnerHtml to set description content
Test
-
npm start - Go to http://localhost:3000/events
- Check that event descriptions contain new lines and links
Quick update. @Amyh11325 reached out to me and looped me in some of the issues with DOMPurify with Next.js builds. I managed to get those working in the above changes. :D
@ArshMalik02 Some of these action failures I don't think I can debug unless I get access to the Netlify console. The public details from the logs are not very helpful.
@bliutech I and @JCamyre (deployment lead) will take a look at this issue.