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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user