public static function FeedImportFilter::stripTags in Feed Import 7
Same name and namespace in other branches
- 8 feed_import_base/filters/feed_import_default_filters.php \FeedImportFilter::stripTags()
- 7.3 feed_import_base/filters/feed_import_default_filters.php \FeedImportFilter::stripTags()
- 7.2 feed_import_filter.inc.php \FeedImportFilter::stripTags()
Strips tags
Parameters
mixed $field: A string or an array of strings
string $tags: Allowed tags
Return value
mixed Result without tags
File
- ./
feed_import_filter.inc.php, line 315 - This class contains filter functions for feed import
Class
- FeedImportFilter
- @file This class contains filter functions for feed import
Code
public static function stripTags($field, $tags = '') {
if (is_array($field)) {
foreach ($field as &$f) {
$f = self::stripTags($field, $tags);
}
return $field;
}
return strip_tags($field, $tags);
}