In order to apply the text filter to the entry template and avoid conflicts with fields that apply the text filters to content, this needs to be done before any replacements.
For this purpose we can add a method to each view type that has an entry template, which will format the content of the entry template if any, and store it in a property of the object class.
The content needs to be stored for the length of the script because it is retrieved for for the definition of each entry.
Since the entry template and its DB support are defined in the view type, the way to apply the text filter is also left to the view discretion. There is no interface or core dataformview API for that.
Since templates are created by the instructor and we trust the instructor, the format options are set to trusted and noclean.