Skip to content

See the results of the various built-in sanitization and escaping functions on a user-provided string.

License

Notifications You must be signed in to change notification settings

bookchiq/wp-sanitization-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wp-sanitization-demo

WordPress offers many built-in sanitization, validation, and escaping functions. However, it's not always clear which one is most suitable for a given purpose, and often requires trial-and-error to identify usable candidates.

This very simple plugin adds a form that takes a user-provided string and runs it through most of the available functions. Then it shows the results of each, making it obvious which ones merit further consideration.

Use the [wp-sanitization-demo] shortcode to add the form to a page.

Please note that this plugin is intended for developers, and hasn't been thoroughly tested for security issues. ;)

About

See the results of the various built-in sanitization and escaping functions on a user-provided string.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published