function aggregator_filter_xss

Renders the HTML content safely, as allowed.

Parameters

$value: The content to be filtered.

Return value

The filtered content.

2 calls to aggregator_filter_xss()
template_preprocess_aggregator_feed_source in drupal/core/modules/aggregator/aggregator.pages.inc
Prepares variables for aggregator feed source templates.
template_preprocess_aggregator_item in drupal/core/modules/aggregator/aggregator.pages.inc
Prepares variables for aggregator item templates.

File

drupal/core/modules/aggregator/aggregator.module, line 535
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_filter_xss($value) {
  return filter_xss($value, preg_split('/\\s+|<|>/', config('aggregator.settings')
    ->get('items.allowed_html'), -1, PREG_SPLIT_NO_EMPTY));
}