validate icon indicating copy to clipboard operation
validate copied to clipboard

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

Open StephanSchmidt opened this issue 2 years ago • 1 comments

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?

StephanSchmidt avatar Oct 21 '23 09:10 StephanSchmidt

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

inhere avatar Jan 05 '24 09:01 inhere