mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
15 lines
534 B
Markdown
15 lines
534 B
Markdown
+++
|
|
title = "hx-disable"
|
|
description = "The hx-disable attribute in htmx will disable htmx processing for a given element and all its children."
|
|
+++
|
|
|
|
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
|