# SerializeHtmlOptions (@salmonui/rich-text)

> The SerializeHtmlOptions interface of @salmonui/rich-text.

Canonical: https://salmonui.dev/docs/reference/rich-text/SerializeHtmlOptions

```ts
import type { SerializeHtmlOptions } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface SerializeHtmlOptions {
    xhtml?: boolean;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `xhtml` | `xhtml?: boolean;` | optional | XHTML-compatible output (used by the editor's `getHtml({ xhtml: true })`): void elements self-close (`<br />`), boolean attributes are written as `name="name"` and `&nbsp;` as `&#160;`, so the result also parses as XML. |
