Skip to content

Instantly share code, notes, and snippets.

@matthijs166
Created January 6, 2018 20:38
Show Gist options
  • Save matthijs166/659b77bbd2365b783e39b0d2208a677e to your computer and use it in GitHub Desktop.
Save matthijs166/659b77bbd2365b783e39b0d2208a677e to your computer and use it in GitHub Desktop.
Sanitizes a string from user input or from the database.
sanitize_text_field( string $str )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment