Escaping Checker

By Tom J Nowell

★ 5.0/5 (1 ratings)0+ active installationsVersion 1.1

A handy tool for checking the output of escaping, sanitization and validation functions

Description

This plugin adds a shortcode that when used inserts an escaping checker. The checker gives you a form you can enter potentially unsafe content into, and when submitted, passes that content through every sanitisation, validation and escaping function in WordPress Core, and some PHP Core functions

Installation

  1. Upload the plugin folder into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place the [tomjn_escaping_tests] in a page or post and save

If you prefer to create a dedicate page template, use echo tomjn_escaping_tests();

FAQ

Installation Instructions

  1. Upload the plugin folder into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place the [tomjn_escaping_tests] in a page or post and save

If you prefer to create a dedicate page template, use echo tomjn_escaping_tests();

There’s a Lot of Escaping Functions!

Yes! But not every function listed here is an escaping function, there are validation and sanitising functions too, some of them are PHP Core functions rather than WordPress functions

Screenshots

Changelog

1.1

  • Put a green or yellow border around output depending on wether it matches the original input
  • Bumped tested WP version to 4.9.5

1.0

  • Added behave.js to make typing content easier