Skip to content

Parsing HTML back to Slate format? #289

Answered by zbeyens
keyserfaty asked this question in Q&A
Discussion options

You must be logged in to vote

From 0.67.x, the function supports HTML string:

const nodes = deserializeHTMLToDocumentFragment({
  plugins,
  element: '<p>Deserialized paragraph here.</p>',
})

const html = serializeHTMLFromNodes({
  plugins,
  nodes,
})

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
plugin:deserialize-html Html deserializer
2 participants
Converted from issue

This discussion was converted from issue #289 on December 08, 2020 22:39.