filter_xss_admin

  1. drupal
    1. 5 filter.module
    2. 6 filter.module
    3. 7
    4. 8
Versions
5 – 7 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

▾ 22 functions call filter_xss_admin()

ajax_prepare_response in includes/ajax.inc
Converts the return value of a page callback into an Ajax commands array.
bartik_process_maintenance_page in themes/bartik/template.php
Override or insert variables into the maintenance page template.
bartik_process_page in themes/bartik/template.php
Override or insert variables into the page template.
drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as HTML.
FilterUnitTestCase::testFilterXSSAdmin in modules/filter/filter.test
Test the loose, admin HTML filter.
node_help in modules/node/node.module
Implements hook_help().
PageTitleFiltering::testTitleXSS in modules/system/system.test
Test if the title of the site is XSS proof.
seven_admin_block_content in themes/seven/template.php
Overrides theme_admin_block_content().
seven_node_add_list in themes/seven/template.php
Display the list of available node types for node creation.
system_message_action in modules/system/system.module
Sends a message to the current user's screen.
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
Returns HTML for the content of an administrative block.
theme_form_element_label in includes/form.inc
Returns HTML for a form element label and required marker.
theme_menu_admin_overview in modules/menu/menu.admin.inc
Returns HTML for a menu title and description for the menu overview page.
theme_node_add_list in modules/node/node.pages.inc
Returns HTML for a list of available node types for node creation.
theme_node_admin_overview in modules/node/content_types.inc
Returns HTML for a node type description for the content type admin overview page.
user_account_form in modules/user/user.module
Helper function to add default user account fields to user registration and edit form.
_drupal_error_handler_real in includes/errors.inc
Custom PHP error handler.
_locale_languages_configure_form_language_table in modules/locale/locale.admin.inc
Helper function to build a language provider table.
_profile_form_explanation in modules/profile/profile.module

Code

includes/common.inc, line 1298

<?php
function filter_xss_admin($string) {
  return filter_xss($string, array('a', 'abbr', 'acronym', 'address', 'article', 'aside', 'b', 'bdi', 'bdo', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'command', 'dd', 'del', 'details', 'dfn', 'div', 'dl', 'dt', 'em', 'figcaption', 'figure', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'i', 'img', 'ins', 'kbd', 'li', 'mark', 'menu', 'meter', 'nav', 'ol', 'output', 'p', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'small', 'span', 'strong', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'time', 'tr', 'tt', 'u', 'ul', 'var', 'wbr'));
}
?>