PHP/File Directory/Stream Filter
stream_filter_append
<?php
$blog = <<< blog
Do you write blog?
blog;
$fh = fopen("filter.html", "w");
stream_filter_append($fh, "string.strip_tags", STREAM_FILTER_WRITE, "<br>");
fwrite($fh, $blog);
fclose($fh);
?>
stream_get_filters
<?php
print_r(stream_get_filters());
?>