aggregator_filter_xss

modules/aggregator/aggregator.module, line 1417

Versions
4.7 – 7
aggregator_filter_xss($value)

Safely render HTML content, as allowed.

▾ 2 functions call 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.

Code

<?php
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));
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.