Skip to content

FILTER_SANITIZE_FULL_SPECIAL_CHARS as replacement for FILTER_SANITIZE_STRING#210

Merged
JJJ merged 1 commit intostuttter:masterfrom
lloc:fix/FILTER_SANITIZE_STRING-deprecation
Jan 29, 2025
Merged

FILTER_SANITIZE_FULL_SPECIAL_CHARS as replacement for FILTER_SANITIZE_STRING#210
JJJ merged 1 commit intostuttter:masterfrom
lloc:fix/FILTER_SANITIZE_STRING-deprecation

Conversation

@lloc
Copy link
Contributor

@lloc lloc commented Jan 28, 2025

FILTER_SANITIZE_STRING

Deprecated as of PHP 8.1.0, PHP.net recommends to use htmlspecialchars() instead.

FILTER_SANITIZE_FULL_SPECIAL_CHARS

Equivalent to calling htmlspecialchars() with ENT_QUOTES set.

Source: https://www.php.net/manual/it/filter.filters.sanitize.php

This aims to solve #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants