mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
618a16f59d
* feat: implement automatic escaping * feat: deprecate automatic escaping * fix: cast unescapeHTML as string * fix: slot fallback behavior * fix: unescaped content * Update escape.ts * Update escape.ts * feat: update internal components to use `set:html` * chore: update compiler * chore: update changeset
8 lines
448 B
Markdown
8 lines
448 B
Markdown
---
|
|
'astro': minor
|
|
---
|
|
|
|
Add support for the `set:html` and `set:text` directives.
|
|
|
|
With the introduction of these directives, unescaped HTML content in expressions is now deprecated. Please migrate to `set:html` in order to continue injecting unescaped HTML in future versions of Astro—you can use `<Fragment set:html={content}>` to avoid a wrapper element. `set:text` allows you to opt-in to escaping now, but it will soon become the default.
|
|
|