Skip to content

Commit 92b536f

Browse files
committed
Some markup improvements
1 parent d696053 commit 92b536f

File tree

1 file changed

+32
-10
lines changed

1 file changed

+32
-10
lines changed

reference/filter/constants.xml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
</term>
305305
<listitem>
306306
<simpara>
307-
Alias of <constant>FILTER_VALIDATE_BOOL</constant>.
307+
&Alias; <constant>FILTER_VALIDATE_BOOL</constant>.
308308
The alias was available prior to the introduction of its canonical
309309
name in PHP 8.0.0.
310310
</simpara>
@@ -523,8 +523,15 @@
523523
<listitem>
524524
<simpara>
525525
Requires the <acronym>URL</acronym> to contain a scheme part.
526-
(Deprecated as of PHP 7.3.0 and removed as of PHP 8.0.0, as it is implied by the filter already.)
527526
</simpara>
527+
<warning>
528+
<simpara>
529+
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0 and
530+
<emphasis>REMOVED</emphasis> as of PHP 8.0.0.
531+
This is because it is always implied by the
532+
<constant>FILTER_VALIDATE_URL</constant> filter.
533+
</simpara>
534+
</warning>
528535
</listitem>
529536
</varlistentry>
530537
<varlistentry xml:id="constant.filter-flag-host-required">
@@ -535,8 +542,15 @@
535542
<listitem>
536543
<simpara>
537544
Requires the <acronym>URL</acronym> to contain a host part.
538-
(Deprecated as of PHP 7.3.0 and removed as of PHP 8.0.0, as it is implied by the filter already.)
539545
</simpara>
546+
<warning>
547+
<simpara>
548+
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0 and
549+
<emphasis>REMOVED</emphasis> as of PHP 8.0.0.
550+
This is because it is always implied by the
551+
<constant>FILTER_VALIDATE_URL</constant> filter.
552+
</simpara>
553+
</warning>
540554
</listitem>
541555
</varlistentry>
542556
<varlistentry xml:id="constant.filter-flag-path-required">
@@ -848,7 +862,7 @@
848862
</term>
849863
<listitem>
850864
<simpara>
851-
Alias of <constant>FILTER_UNSAFE_RAW</constant>.
865+
&Alias; <constant>FILTER_UNSAFE_RAW</constant>.
852866
</simpara>
853867
</listitem>
854868
</varlistentry>
@@ -892,10 +906,14 @@
892906
</term>
893907
<listitem>
894908
<simpara>
895-
Alias of <constant>FILTER_SANITIZE_STRING</constant>.
896-
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
897-
use <function>htmlspecialchars</function> instead.)
909+
&Alias; <constant>FILTER_SANITIZE_STRING</constant>.
898910
</simpara>
911+
<warning>
912+
<simpara>
913+
<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
914+
use <function>htmlspecialchars</function> instead.
915+
</simpara>
916+
</warning>
899917
</listitem>
900918
</varlistentry>
901919
<varlistentry xml:id="constant.filter-sanitize-encoded">
@@ -1108,10 +1126,14 @@ string(5) "12.34"
11081126
</term>
11091127
<listitem>
11101128
<simpara>
1111-
Alias of <constant>FILTER_SANITIZE_ADD_SLASHES</constant>.
1112-
(<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0 and
1113-
<emphasis>REMOVED</emphasis> as of PHP 8.0.0)
1129+
&Alias; <constant>FILTER_SANITIZE_ADD_SLASHES</constant>.
11141130
</simpara>
1131+
<warning>
1132+
<simpara>
1133+
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0 and
1134+
<emphasis>REMOVED</emphasis> as of PHP 8.0.0.
1135+
</simpara>
1136+
</warning>
11151137
</listitem>
11161138
</varlistentry>
11171139
</variablelist>

0 commit comments

Comments
 (0)