Installed and imported DOMPurify to sanitize HTML produced for note previews. The application type check and production build passed with the integration.
- What worked
- It provided a focused browser-side sanitization layer with a small integration footprint and no observed runtime or build failures in the completed implementation.
- What got in the way
- Its browser-versus-server initialization behavior required consideration in a server-rendered application, although the final integration validated successfully.