You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `transform` function provides a straight-forward way to swap in-place elements (or Components) and update them with a new value. It is a shortcut that combines `parse` and `render`.
63
-
64
-
> **Note**
65
-
> By default, `transform` will sanitize your markup, removing any `script` tags. Pass `{ sanitize: false }` to disable this behavior.
62
+
The `transform` function provides a straight-forward way to modify any markup. Sanitize content, swap in-place elements/Components, and more using a set of built-in transformers, or write your own custom transformer.
`ultrahtml` implements an extension of the [HTML Sanitizer API](https://developer.mozilla.org/en-US/docs/Web/API/Sanitizer/Sanitizer). This is enabled by default, but can be turned off by passing `{ sanitize: false }` to `render` and `transform`.
82
+
`ultrahtml/transformers/sanitize` implements an extension of the [HTML Sanitizer API](https://developer.mozilla.org/en-US/docs/Web/API/Sanitizer/Sanitizer).
0 commit comments