tiptap/docs/api/utilities/html.md
2021-10-18 18:01:47 +02:00

17 lines
723 B
Markdown

# HTML
[![Version](https://img.shields.io/npm/v/@tiptap/html.svg?label=version)](https://www.npmjs.com/package/@tiptap/html)
[![Downloads](https://img.shields.io/npm/dm/@tiptap/html.svg)](https://npmcharts.com/compare/@tiptap/html?minimal=true)
The utility helps rendering JSON content as HTML, and generating JSON from HTML, without an editor instance, for example on the server side.
All it needs is JSON or a HTML string, and a list of extensions.
## Source code
[packages/html/](https://github.com/ueberdosis/tiptap/blob/main/packages/html/)
## Generate HTML from JSON
https://embed.tiptap.dev/preview/GuideContent/GenerateHTML
## Generate JSON from HTML
https://embed.tiptap.dev/preview/GuideContent/GenerateJSON