mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 22:41:23 +00:00
17 lines
460 B
Markdown
17 lines
460 B
Markdown
---
|
|
layout: layout.njk
|
|
title: </> htmx - hx-disable
|
|
---
|
|
|
|
## `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
|