Sanitize HTML on ServerSide #2845
Unanswered
KSK-Exipnos
asked this question in
Q&A
Replies: 1 comment
-
Hey @KSK-Exipnos
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with WpGraphQl and a decoupled Vue3 frontend.
To display the posts content, I'm using v-html="".
With planned post creation by the user on the front end, the HTML isn't sanitized in any way yet.
For sure, I could use a package like "vue-3-sanitize" to clean the output. But doing it on the server side before saving to the db would be better.
Is there already a way to do that with the plugin, or do I need to add a middleware.
And if so, some hints would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions