HEX
Server: LiteSpeed
System: Linux server318.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: sahadove (2893)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/sahadove///public_html/wp-content/plugins/gallery-1766620036/includes/sanitizer.php
<?php

// Exits if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * YM Fast SEO class providing sanitation methods.
 */
class YMFSEO_Sanitizer {
	/**
	 * Sanitizes text field.
	 * 
	 * @param string $value Text value.
	 * 
	 * @return string Sanitized string.
	 */
	public static function sanitize_text_field ( string $value ) : string {
		$value = wp_unslash( $value );

		$value = wp_kses_post( $value );

		$value = normalize_whitespace( $value );

		$value = trim( $value );

		return $value;
	}
}