| 1 | --- |
| 2 | title: "htmx.config.metaCharacter" |
| 3 | description: "Custom character used instead of `:` for attribute modifiers" |
| 4 | --- |
| 5 | |
| 6 | The `htmx.config.metaCharacter` option allows you to replace the `:` character used in attribute modifiers (e.g., `hx-get:inherited`) with a custom character of your choice. |
| 7 | |
| 8 | **Default:** `undefined` (uses `:`) |
| 9 | |
| 10 | ## Example |
| 11 | |
| 12 | ```javascript |
| 13 | htmx.config.metaCharacter = "-"; |
| 14 | ``` |
| 15 | |
| 16 | ```html |
| 17 | <meta name="htmx-config" content='{"metaCharacter":"-"}'> |
| 18 | ``` |
| 19 | |
| 20 | With the above setting, you would write `hx-get-inherited` instead of `hx-get:inherited`. This can help avoid conflicts with templating engines or parsers that treat `:` specially. |
| 21 | |
| 22 | See also: [`htmx.config`](/reference/config/htmx-config) |