/** * Filter data according to a filter. Uses ContentModel::Filter() * * @param $data string the data-string to filter. * @param $filter string the filter to use. * @returns string the filtered string. */ function filter_data($data, $filter) { return ContentModel::Filter($data, $filter); }