This example provides two filters.
Foo Filter replaces 'foo' with a configurable replacement.
Time Tag replaces the string '<time />' with the current time.
To use these filters, go to admin/config/content/formats and configure an input format, or create a new one.