filter content

How would you filter content?

means, attach some rules to a post model's getContent()-function and return the filtered content.

could anybody give some best practice code sample?

It is better to filter your input before saving to database, so it don’t have to be manipulated in every request. You can do this by extending beforeValidate() or beforeSave() of your choice.

I think COutputProcessor is my friend