summaryrefslogtreecommitdiffstatshomepage
path: root/www/content/attributes/hx-disable.md
blob: 6e353593d9bf2df9c56da630a09b4313771ad503 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
+++
title = "hx-disable"
+++

The `hx-disable` attribute will disable htmx processing for a given element and all its children.  This can be 
useful as a backup for HTML escaping, when you include user generated content in your site, and you want to 
prevent malicious scripting attacks.

The value of the tag is ignored, and it cannot be reversed by any content beneath it.
 
## Notes

* `hx-disable` is inherited