1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00

PHP 8.1: FILTER_SANITIZE_STRING is deprecated (#1193)

This commit is contained in:
Kamil Tekiela
2021-12-10 14:25:58 +00:00
committed by GitHub
parent 32cd7f679d
commit d83aa96e67
2 changed files with 11 additions and 1 deletions

View File

@@ -281,6 +281,8 @@
<listitem>
<simpara>
ID of "string" filter.
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
use <function>htmlspecialchars</function> instead.)
</simpara>
</listitem>
</varlistentry>
@@ -292,6 +294,8 @@
<listitem>
<simpara>
ID of "stripped" filter.
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
use <function>htmlspecialchars</function> instead.)
</simpara>
</listitem>
</varlistentry>

View File

@@ -351,13 +351,19 @@
Strip tags and HTML-encode double and single quotes, optionally strip
or encode special characters. Encoding quotes can be
disabled by setting <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>.
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
use <function>htmlspecialchars</function> instead.)
</entry>
</row>
<row>
<entry><constant>FILTER_SANITIZE_STRIPPED</constant></entry>
<entry>"stripped"</entry>
<entry></entry>
<entry>Alias of "string" filter.</entry>
<entry>
Alias of "string" filter.
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
use <function>htmlspecialchars</function> instead.)
</entry>
</row>
<row>
<entry><constant>FILTER_SANITIZE_URL</constant></entry>