in xooki.js [677:701]
main: function(source, level) {
// formats an input source
if (xooki.c.inputFormat && typeof this.getInputFilters(xooki.c.inputFormat) != "undefined") {
format = xooki.c.inputFormat;
} else {
format = xooki.c.defaultInputFormat;
}
filters = this.getInputFilters(format);
for (var i in filters) {
if (typeof filters[i] == 'string') {
xooki.debug('processing filter '+filters[i]);
f = xooki.input.filters[filters[i]];
if (typeof f == "function") {
try {
source = f(source, level); // process filter
} catch (e) {
xooki.error(e, t("error occurred while processing filter ${0}", filters[i]));
}
} else {
xooki.error(t("unknown filter ${0} used in input format ${1}", filters[i], format));
}
}
}
return source;
}