You are here

function aggregator_filter_xss in Drupal 5

Same name and namespace in other branches
  1. 4 modules/aggregator.module \aggregator_filter_xss()
  2. 6 modules/aggregator/aggregator.module \aggregator_filter_xss()
  3. 7 modules/aggregator/aggregator.module \aggregator_filter_xss()

Safely render HTML content, as allowed.

2 calls to aggregator_filter_xss()
theme_aggregator_feed in modules/aggregator/aggregator.module
Format a news feed.
theme_aggregator_page_item in modules/aggregator/aggregator.module
Format an individual feed item for display on the aggregator page.

File

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

Code

function aggregator_filter_xss($value) {
  return filter_xss($value, preg_split('/\\s+|<|>/', variable_get("aggregator_allowed_html_tags", '<a> <b> <br> <dd> <dl> <dt> <em> <i> <li> <ol> <p> <strong> <u> <ul>'), -1, PREG_SPLIT_NO_EMPTY));
}