View as Markdown

API reference: @salmonui/rich-text

SerializeHtmlOptionsinterface

import type { SerializeHtmlOptions } from '@salmonui/rich-text';
interface SerializeHtmlOptions {
    xhtml?: boolean;
}
SerializeHtmlOptions members (1)
NameSignatureDescription
xhtmloptionalxhtml?: boolean;

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.