Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to sanitize all data for v.sanitize() with bluemonday #244

Open
StephanSchmidt opened this issue Oct 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@StephanSchmidt
Copy link

I want to migrate Echo Bind() to v.BindSafeData().

Is there a way to call a bluemonday sanitizer to remove all HTML/JS from strings before the data is bound to a struct field?

@inhere inhere added the question Further information is requested label Jan 5, 2024
@inhere
Copy link
Member

inhere commented Jan 5, 2024

Maybe you can customize echo's binding and validating process to achieve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants