1--TEST-- 2string.strip_tags filter 3--FILE-- 4<?php 5$fp = fopen('php://output', 'w'); 6stream_filter_append($fp, 'string.strip_tags'); 7fwrite($fp, "test <b>bold</b> <i>italic</i> test\n"); 8fclose($fp); 9 10$fp = fopen('php://output', 'w'); 11stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b>"); 12fwrite($fp, "test <b>bold</b> <i>italic</i> test\n"); 13fclose($fp); 14 15$fp = fopen('php://output', 'w'); 16stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, ["b"]); 17fwrite($fp, "test <b>bold</b> <i>italic</i> test\n"); 18fclose($fp); 19 20?> 21--EXPECTF-- 22Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d 23test bold italic test 24 25Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d 26test <b>bold</b> italic test 27 28Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d 29test <b>bold</b> italic test 30