- Moodle 1.9 Extension Development
- Jonathan Moore Michael Churchward
- 177字
- 2021-08-06 17:24:07
How a filter works
Before trying to build a filter, it would help to understand how it works. To begin with, any text written to the screen in Moodle should be processed through the format_text
function. The purpose of this function is to process the text, such that it is always safe to be displayed. This means making sure there are no security issues and that any HTML used contains only allowed tags.
Additionally, the output is run through the filter_text
function, and this is the function we are interested in. This function takes the text destined for the screen, and applies all enabled filters to it. The resulting text will be the result of all of these filters.
filter_text
applies each enabled filter to the text in the order defined in the filter configuration screen (shown in the following screenshot). The order is important; each filter will be fed the output of the previous filter's text. So it is always possible that one filter may change the text in a way that impacts the next filter.

- Adobe After Effects CC 高手之路
- FreeSWITCH 1.0.6
- Zenoss Core Network and System Monitoring
- Excel 2013電子表格處理
- 邊做邊學:Photoshop+CorelDRAW綜合實訓教程
- Windows Phone 7 Silverlight Cookbook
- 計算機圖形圖像處理Photoshop CS6項目教程
- Photoshop插畫藝術火星風暴
- AutoCAD 2016中文版基礎教程(全圖解視頻版)
- Plone 3 for Education
- Mobile Web Development
- Java EE 5 Development with NetBeans 6
- Microsoft SQL Server 2008 High Availability
- 選擇的藝術:Photoshop圖像處理深度剖析(第3版)
- 和秋葉一起學:秒懂Photoshop后期修圖