# Can the default functionality of innerhtml be replaced?

**URL:** <https://discourse.aurelia.io/t/can-the-default-functionality-of-innerhtml-be-replaced/4792>\
**Category:** Uncategorized\
**Created:** [June 2, 2022, 6:06pm UTC](https://discourse.aurelia.io/t/can-the-default-functionality-of-innerhtml-be-replaced/4792 "2022-06-02T18:06:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianPAdams](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/brianpadams/32/256_2.png) [@BrianPAdams](https://discourse.aurelia.io/u/BrianPAdams)\
**Post date:** [June 2, 2022, 6:06pm UTC](https://discourse.aurelia.io/t/can-the-default-functionality-of-innerhtml-be-replaced/4792/1 "2022-06-02T18:06:07Z")

</div>

I’d like to make the default functionality of the innerhtml binding include a call to a sanitizer. Can we do this?

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [June 2, 2022, 9:24pm UTC](https://discourse.aurelia.io/t/can-the-default-functionality-of-innerhtml-be-replaced/4792/2 "2022-06-02T21:24:46Z")

</div>

Yes, you can!!

> **[Cheat Sheet | Aurelia](http://aurelia.io/docs/fundamentals/cheat-sheet/)**
>
> Forgot the syntax for bindings? Need to know how to create a custom attribute? This article contains answers to questions like those as well as a bunch of quick snippets for common tasks.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/2/2137a77d8b2a65e214185f1269e3ebf3a440e3f2.png)
