Currently data returned by Web Services doesn't have the text filtered (aka, with filters applied), this can be solved passing an extra parameter to every WS request that is going to return text:
moodlewssettingfilter = true
In the current app we apply filters locally in the app (just the multilingual filter, not other filters).
We have to evaluate if we should start to retrieve the text filtered or if we should filter the text once is in the app, this has some pros and cons:
If we apply filters in the app:
- We are limited to apply only the core filters
- We have to replicate lot of code for complex filters
- We are not going to be able to support filters that requires software to be installed in the server
- We will have to implement web services for retrieve filter settings (like censored words)
- We are not going to support contributed filters
If we retrieve the text filtered:
- Not all the text filtered is suitable to be displayed in the app
- Maybe the text contains images that we are going to need to download