Closed fecony closed 1 year ago
Sanitizing on server works as expected. I just wanted to make sure it is how htmx works there or if it can be fixed
This is intended behavior. the safe attribute only has effects when the inner createElement call is made. No extra JS code is sent to the client, so there's no way to do that. You should use safe
attribute where you would interpolate with user generated content, not as a html response sent from a server.
Thanks for the clarification ❤️
Have simple example of Elysia/html plugin, kita and htmx
results injecting and running js code... maaaaaybe I need to sanitize it on server then?