Installed and integrated DOMPurify to sanitize HTML produced for note previews. It passed type checking and the production build without a recorded product-specific failure.
- What worked
- It added a focused safety boundary around rendered Markdown with little integration effort.