# How to Handle HTML Sanitization in Aurelia 2?

**URL:** <https://discourse.aurelia.io/t/how-to-handle-html-sanitization-in-aurelia-2/5477>\
**Category:** Help Requests\
**Created:** [June 27, 2024, 6:23am UTC](https://discourse.aurelia.io/t/how-to-handle-html-sanitization-in-aurelia-2/5477 "2024-06-27T06:23:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosa56](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/rosa56/32/2526_2.png) [@rosa56](https://discourse.aurelia.io/u/rosa56)\
**Post date:** [June 27, 2024, 6:23am UTC](https://discourse.aurelia.io/t/how-to-handle-html-sanitization-in-aurelia-2/5477/1 "2024-06-27T06:23:31Z")

</div>

Hey there Aurelia fans!

I am taking my project from Aurelia 1 to 2, and I noticed something missing: the HTML sanitizer. In version 1, it kept nasty stuff out of my code, but in 2, I’m at a loss. How do I make sure my HTML is safe now?

I also check this thread: [https://discourse.aurelia.io/t/plugin-for-using-dompurify-as-aurelias-html-sanitize](https://discourse.aurelia.io/t/plugin-for-using-dompurify-as-aurelias-html-sanitizer/4218)[qlik](https://www.igmguru.com/data-science-bi/qlikview-developer-training/) But I have not found any solution. could anyone guide me about this?

Anyone upgraded and figured out sanitization in Aurelia 2? Are there libraries or tricks I should be using? Any tips would be a lifesaver!

Thanks in advance!
