filter_xss_admin

Versions
mediamosa-21
filter_xss_admin($string)

Very permissive XSS/HTML filter for admin-only use.

Use only for fields where it is impractical to use the whole filter system, but where some (mainly inline) mark-up is desired (so check_plain() is not acceptable).

Allows all tags that can be used inside an HTML body, save for scripts and styles.

Related topics

▾ 15 functions call filter_xss_admin()

actions_synchronize in includes/actions.inc
Synchronizes actions that are provided by modules in hook_action_info().
ajax_deliver in includes/ajax.inc
Package and send the result of a page callback to the browser as an AJAX response.
devel_render_term in sites/all/modules/devel/devel.module
Menu callback; prints the render structure of the a term.
drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as HTML.
node_help in modules/node/node.module
Implements hook_help().
seven_node_add_list in themes/seven/template.php
Display the list of available node types for node creation.
template_preprocess_forum_list in modules/forum/forum.module
Process variables to format a forum listing.
template_preprocess_html in includes/theme.inc
Preprocess variables for html.tpl.php
template_preprocess_page in includes/theme.inc
Preprocess variables for page.tpl.php
theme_admin_block_content in modules/system/system.admin.inc
This function formats the content of an administrative block.
theme_form_element_label in includes/form.inc
Theme a form element label and required marker.
theme_menu_admin_overview in modules/menu/menu.admin.inc
Theme the menu title and description for admin page
theme_node_add_list in modules/node/node.pages.inc
Display the list of available node types for node creation.
theme_node_admin_overview in modules/node/content_types.inc
_locale_languages_configure_form_language_table in modules/locale/locale.admin.inc
Helper function to build a language provider table.

Code

includes/common.inc, line 1202

<?php
function filter_xss_admin($string) {
  return filter_xss($string, array('a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'ins', 'kbd', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'));
}
?>