From 627f933cfe6a033dccac32982cd68e7c1b86927f Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 16 Jan 2026 06:59:27 +0000 Subject: [PATCH] filter: fix XML to remove useless wrapping para tags via automatic script --- reference/filter/examples.xml | 61 ++++++++----------- reference/filter/functions/filter-has-var.xml | 44 +++++++------ reference/filter/functions/filter-id.xml | 32 +++++----- reference/filter/functions/filter-input.xml | 20 +++--- reference/filter/functions/filter-list.xml | 21 +++---- .../filter/functions/filter-var-array.xml | 24 ++++---- 6 files changed, 90 insertions(+), 112 deletions(-) diff --git a/reference/filter/examples.xml b/reference/filter/examples.xml index 9023dcad2b..cad475c76d 100644 --- a/reference/filter/examples.xml +++ b/reference/filter/examples.xml @@ -1,15 +1,13 @@ - - + &reftitle.examples;
Validation - - - Validating email addresses with <function>filter_var</function> - + + Validating email addresses with <function>filter_var</function> + ]]> - - &example.outputs; - + + &example.outputs; + - - - + + - - - Validating IP addresses with <function>filter_var</function> - + + Validating IP addresses with <function>filter_var</function> + ]]> - - &example.outputs; - + + &example.outputs; + - - - + + - - - Passing options to <function>filter_var</function> - + + Passing options to <function>filter_var</function> + ]]> - - &example.outputs; - + + &example.outputs; + - - - + +
@@ -134,7 +127,7 @@ $sanitized_c = filter_var($c, FILTER_SANITIZE_EMAIL); if (filter_var($sanitized_c, FILTER_VALIDATE_EMAIL)) { echo "This (c) sanitized email address is considered valid.\n"; echo "Before: $c\n"; - echo "After: $sanitized_c\n"; + echo "After: $sanitized_c\n"; } ?> ]]> @@ -154,7 +147,6 @@ After: bogus@example.org
- - diff --git a/reference/filter/functions/filter-has-var.xml b/reference/filter/functions/filter-has-var.xml index 5e61364b92..f452db1717 100644 --- a/reference/filter/functions/filter-has-var.xml +++ b/reference/filter/functions/filter-has-var.xml @@ -1,7 +1,7 @@ - + filter_has_var Checks if a variable of the specified type exists @@ -17,28 +17,26 @@ &reftitle.parameters; - - - - input_type - - - One of INPUT_GET, INPUT_POST, - INPUT_COOKIE, INPUT_SERVER, or - INPUT_ENV. - - - - - var_name - - - Name of a variable to check. - - - - - + + + input_type + + + One of INPUT_GET, INPUT_POST, + INPUT_COOKIE, INPUT_SERVER, or + INPUT_ENV. + + + + + var_name + + + Name of a variable to check. + + + + &reftitle.returnvalues; diff --git a/reference/filter/functions/filter-id.xml b/reference/filter/functions/filter-id.xml index 7e5de3ec26..61caee473a 100644 --- a/reference/filter/functions/filter-id.xml +++ b/reference/filter/functions/filter-id.xml @@ -1,7 +1,7 @@ - + filter_id Returns the filter ID belonging to a named filter @@ -16,18 +16,16 @@ &reftitle.parameters; - - - - name - - - Name of a filter to get. - - - - - + + + name + + + Name of a filter to get. + + + + &reftitle.returnvalues; @@ -38,11 +36,9 @@ &reftitle.seealso; - - - filter_list - - + + filter_list + diff --git a/reference/filter/functions/filter-input.xml b/reference/filter/functions/filter-input.xml index 3738232272..627d6745e4 100644 --- a/reference/filter/functions/filter-input.xml +++ b/reference/filter/functions/filter-input.xml @@ -1,6 +1,6 @@ - + filter_input Gets a specific external variable by name and optionally filters it @@ -67,10 +67,9 @@ &reftitle.examples; - - - A <function>filter_input</function> example - + + A <function>filter_input</function> example + Search again."; ?> ]]> - - &example.outputs.similar; - + + &example.outputs.similar; + Search again. ]]> - - - + + diff --git a/reference/filter/functions/filter-list.xml b/reference/filter/functions/filter-list.xml index a6561efa39..8130ad9770 100644 --- a/reference/filter/functions/filter-list.xml +++ b/reference/filter/functions/filter-list.xml @@ -1,7 +1,7 @@ - + filter_list Returns a list of all supported filters @@ -31,18 +31,17 @@ &reftitle.examples; - - - A <function>filter_list</function> example - + + A <function>filter_list</function> example + ]]> - - &example.outputs.similar; - + + &example.outputs.similar; + callback ) ]]> - - - + + - - + filter_var_array Gets multiple variables and optionally filters them @@ -82,18 +82,17 @@ &reftitle.returnvalues; - An array containing the values of the requested variables on success, or &false; - on failure. An array value will be &false; if the filter fails, or &null; if + An array containing the values of the requested variables on success, or &false; + on failure. An array value will be &false; if the filter fails, or &null; if the variable is not set. &reftitle.examples; - - - A <function>filter_var_array</function> example - + + A <function>filter_var_array</function> example + ]]> - - &example.outputs; - + + &example.outputs; + @@ -158,9 +157,8 @@ array(6) { NULL } ]]> - - - + +