Skip to content

Does tiptap sanitize input/output by default? #42

Answered by sibiraj-s
shyakadavis asked this question in Q&A
Discussion options

You must be logged in to vote

Nope. Tiptap doesn't include sanitization by default.

But in most cases, you don't need it.

Sure, Yeah, as said, this library is just to make Tiptap work with svelte smoothly; it doesn't take any other overheads. And the question might be a better fit on the tiptap repo.

My thoughts on sanitization would be that it doesn't matter whether the client sanitzes the content or not; one has to validate/sanitize user inputs on the server before processing them. Even if the client implements sanitization, sometimes it is hard or complex to get exactly the same output that the client library and server library produce.

And to implement sanitization, you may be able to do these things:

  1. Verify your…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shyakadavis
Comment options

@shyakadavis
Comment options

@sibiraj-s
Comment options

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