API reference: @salmonui/rich-text
blocksToHtmlfunction
import { blocksToHtml } from '@salmonui/rich-text';function blocksToHtml(blocks: readonly Block[]): string;
Serializes blocks to sanitized HTML in the shared vocabulary (getDataAsHtml). Block ids are written as data-block-id. Pure and
server-safe; unsafe values in the JSON (a javascript: link, say) are
removed by the sanitizer like any other HTML.