# noSvelteAtHtmlTags

Rule `biome/noSvelteAtHtmlTags`. Disallow the use of Svelte's `{@html}` tag.

- Source: biome
- Technologies: Svelte
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #547 by reach, #182 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noSvelteAtHtmlTags` | yes | no | group nursery, since 2.5.11 | [docs](https://biomejs.dev/linter/rules/no-svelte-at-html-tags/) |

## Code examples

### Incorrect: the rule reports this

```svelte
{@html content}
```

### Correct: the rule accepts this

```svelte
{content}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noSvelteAtHtmlTags": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noSvelteAtDebugTags](https://lintradar.dev/rules/biome/noSvelteAtDebugTags.md): Disallow the use of Svelte's `{@debug}` tag.
- [biome/noSvelteBindValueOnCheckableInputs](https://lintradar.dev/rules/biome/noSvelteBindValueOnCheckableInputs.md): Disallow `bind:value` on checkbox and radio inputs.
- [biome/noSvelteAsyncStore](https://lintradar.dev/rules/biome/noSvelteAsyncStore.md): Disallow passing async functions to Svelte stores.
- [biome/noSvelteClassDirective](https://lintradar.dev/rules/biome/noSvelteClassDirective.md): Disallow Svelte's `class:` directive.
- [biome/noSvelteAddEventListener](https://lintradar.dev/rules/biome/noSvelteAddEventListener.md): Disallow `addEventListener` in Svelte files.
- [biome/noSvelteExportLet](https://lintradar.dev/rules/biome/noSvelteExportLet.md): Disallow declaring Svelte component props with `export let`.

---

Web page: https://lintradar.dev/rules/biome/noSvelteAtHtmlTags. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
