appendices/filters.xml
f80105b4fc1196bd8d5fecb98d686b580b1ff65d
...
...
@@ -130,13 +130,13 @@ $fp = fopen('php://output', 'w');
130
130
stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b><i><u>");
131
131
fwrite($fp, "<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
132
132
fclose($fp);
133
-
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
133
+
/* Outputs: bolded text enlarged to a level 1 heading */
134
134

135
135
$fp = fopen('php://output', 'w');
136
136
stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, array('b','i','u'));
137
137
fwrite($fp, "<b>bolded text</b> enlarged to a <h1>level 1 heading</h1>\n");
138
138
fclose($fp);
139
-
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
139
+
/* Outputs: bolded text enlarged to a level 1 heading */
140
140
?>
141
141
]]>
142
142
</programlisting>
...
...
@@ -206,7 +206,7 @@ fclose($fp);
206
206
<title>convert.quoted-printable-encode and convert.quoted-printable-decode</title>
207
207
<simpara>
208
208
Use of the decode version of this filter is equivalent to processing all stream
209
-
data through the <function>quoted_printable_decode</function> functions.
209
+
data through the <function>quoted_printable_decode</function> function.
210
210
There is no function equivalent to <literal>convert.quoted-printable-encode</literal>.
211
211
<literal>convert.quoted-printable-encode</literal> supports parameters given as
212
212
an associative array. In addition to the parameters supported by
...
...
@@ -302,7 +302,7 @@ fclose($fp);
302
302
<parameter>window</parameter> is the base-2 log of the compression loopback window size.
303
303
Higher values (up to 15 -- 32768 bytes) yield better compression at a cost of memory,
304
304
while lower values (down to 9 -- 512 bytes) yield worse compression in a smaller memory footprint.
305
-
Default <parameter>window</parameter> size is currently <constant>15</constant>.
305
+
Default <parameter>window</parameter> size is currently <literal>15</literal>.
306
306

307
307
<parameter>memory</parameter> is a scale indicating how much work memory should be allocated.
308
308
Valid values range from 1 (minimal allocation) to 9 (maximum allocation). This memory allocation
...
...
@@ -444,7 +444,7 @@ echo "The compressed file is " . filesize('LICENSE.compressed') . " bytes long.\
444
444

445
445
/* Generates output:
446
446

447
-
The original text is 3288 characters long.
447
+
The original file is 3288 bytes long.
448
448
The compressed file is 1488 bytes long.
449
449

450
450
*/
451
451