Skip to content

RenderHTML without escaping HTML characters #2272

Discussion options

You must be logged in to vote

This is not supported with this syntax. But you can also return a DOM node in renderHTML so you could try the following:

renderHTML ({ node }) {
  const div = document.createElement('div')

  div.dataset.type = 'raw'
  div.innerHTML = node.attrs.html

  return div
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robinbisping
Comment options

Answer selected by robinbisping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants