python - Sanitize input in Django Rest Framework -


if send like

{     "description": "hello world <script>alert('hacked');</script>" } 

to django rest framework view, want rid of the script tags.

  1. is there convenient way this, not involve overwriting things , add strip_tags?
  2. what else sanitize input?
  3. did overread section in drf docs or isn't covered?

ignore answers here, terrible.

use bleach. won't every edge case. the situation use library in. client has control of client side definition.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -