Validate::sanitize_esc_html( null|string $value = null )
Description #
Sanitize field value and return HTML escaped value.
Parameters #
- $valuenull | string (Optional) String to sanitize. Default value: null
Source #
File: lib/class-validate.php
public static function sanitize_esc_html( $value = null ) { if ( ! empty( $value ) ) { return esc_html( $value ); } }
Expand full source code Collapse full source code View on GitHub: lib/class-validate.php:139
Add your comment