diff --git a/reference/strings/functions/strip-tags.xml b/reference/strings/functions/strip-tags.xml index 424c16db5f..baf67ea427 100644 --- a/reference/strings/functions/strip-tags.xml +++ b/reference/strings/functions/strip-tags.xml @@ -1,5 +1,5 @@ - + @@ -26,7 +26,7 @@ allowable_tags was added in PHP 3.0.13 - and PHP 4.0b3. + and PHP 4.0b3. Since PHP 4.3.0, HTML comments are also stripped. @@ -36,10 +36,37 @@ '); +$text = ' +

Test paragraph.

+ +Other text'; + +echo strip_tags($text); + +echo "\n\n-------\n"; + +// allow

+echo strip_tags($text, '

'); ?> + ]]> + + The above example will output: + + +Test paragraph.

+ +Other text +]]> +