filter_xss_admin

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.

▾ 57 functions call filter_xss_admin()

admin_node_add_list in contrib-6/admin/theme/template.php
Display the list of available node types for node creation.
contact_mail_page in drupal-6/modules/contact/contact.pages.inc
content_types_overview in contrib-6/cck/includes/content.admin.inc
Menu callback; replacement for node_overview_types().
ctools_block_content_type_admin_info in contrib-6/ctools/plugins/content_types/block/block.inc
Output function for the 'block' content type. Outputs a block based on the module and delta supplied in the configuration.
ctools_content_render in contrib-6/ctools/includes/content.inc
Get the content from a given content type.
ctools_custom_content_type_admin_info in contrib-6/ctools/plugins/content_types/custom/custom.inc
Callback to provide administrative info. In this case we'll render the content as long as it's not PHP, which is too risky to render here.
ctools_custom_content_type_render in contrib-6/ctools/plugins/content_types/custom/custom.inc
Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.
ctools_node_type_desc_content_type_render in contrib-6/ctools/plugins/content_types/node_context/node_type_desc.inc
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
ctools_page_footer_message_content_type_render in contrib-6/ctools/plugins/content_types/page/page_footer_message.inc
Output function for the 'page_footer_message' content type.
ctools_page_mission_content_type_render in contrib-6/ctools/plugins/content_types/page/page_mission.inc
Output function for the 'page_mission' content type.
ctools_page_site_name_content_type_render in contrib-6/ctools/plugins/content_types/page/page_site_name.inc
Output function for the 'page_site_name' content type.
ctools_page_slogan_content_type_render in contrib-6/ctools/plugins/content_types/page/page_slogan.inc
Output function for the 'page_slogan' content type.
ctools_plugin_example_simplecontext_content_type_admin_title in contrib-6/ctools/ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc
ctools_term_description_content_type_render in contrib-6/ctools/plugins/content_types/term_context/term_description.inc
domain_content_menu in contrib-6/domain/domain_content/domain_content.module
Implement hook_menu()
domain_nav_menu in contrib-6/domain/domain_nav/domain_nav.module
Implement hook_menu()
domain_roles_form in contrib-6/domain/domain.admin.inc
FormsAPI to set default domain membership for each role.
domain_view in contrib-6/domain/domain.admin.inc
The main administration page, a list of active domains.
drupal_site_offline in drupal-6/includes/common.inc
Generates a site off-line message.
glossary_filter_form in contrib-6/glossary/glossary.admin.inc
glossary_overview in contrib-6/glossary/glossary.module
glossary_page in contrib-6/glossary/glossary.module
menu_overview_page in drupal-6/modules/menu/menu.admin.inc
Menu callback which shows an overview page of all the custom menus and their descriptions.
node_help in drupal-6/modules/node/node.module
Implementation of hook_help().
node_overview_types in drupal-6/modules/node/content_types.inc
Displays the content type admin overview page.
node_token_values in contrib-6/token/token_node.inc
Implementation of hook_token_values().
og_views_view_group in contrib-6/og/modules/og_views/og_views.module
Embed the configured group homepage.
page_manager_page_build_subtask in contrib-6/ctools/page_manager/plugins/tasks/page.inc
Build a subtask array for a given page.
page_manager_page_form_basic_submit in contrib-6/ctools/page_manager/plugins/tasks/page.admin.inc
Store the values from the basic settings form.
panels_mini_panels_mini_content_type_admin_title in contrib-6/panels/panels_mini/plugins/content_types/panels_mini.inc
Provide the administrative title of a mini panel.
simplecontext_content_type_render in contrib-6/ctools/ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc
Run-time rendering of the body of the block (content type)
system_actions_manage in drupal-6/modules/system/system.module
Menu callback. Display an overview of available and configured actions.
system_mail in drupal-6/modules/system/system.module
Implementation of hook_mail().
system_message_action in drupal-6/modules/system/system.module
A configurable Drupal action. Sends a message to the current user's screen.
taxonomy_form in drupal-6/modules/taxonomy/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_alter in drupal-6/modules/taxonomy/taxonomy.module
Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
template_preprocess_forum_list in drupal-6/modules/forum/forum.module
Process variables to format a forum listing.
template_preprocess_maintenance_page in drupal-6/includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in drupal-6/includes/theme.inc
Process variables for page.tpl.php
template_preprocess_views_view_fields in contrib-6/views/theme/theme.inc
Preprocess theme function to print a single record from a row, with fields
template_preprocess_views_view_summary_unformatted in contrib-6/views/theme/theme.inc
Template preprocess theme function to print summary basically unformatted.
template_preprocess_views_view_table in contrib-6/views/theme/theme.inc
Display a view as a table style.
theme_ctools_context_list in contrib-6/ctools/includes/context.theme.inc
Create a visible list of all the contexts available on an object. Assumes arguments, relationships and context objects.
theme_ctools_context_list_no_table in contrib-6/ctools/includes/context.theme.inc
ctools_context_list() but not in a table format because tabledrag won't let us have tables within tables and still drag.
theme_domain_nav_default in contrib-6/domain/domain_nav/domain_nav.module
Themes the domain list as a JavaScript selection form.
theme_domain_roles_form in contrib-6/domain/domain.admin.inc
FormsAPI
theme_form_element in drupal-6/includes/form.inc
Return a themed form element.
theme_glossary_overview_item in contrib-6/glossary/glossary.module
theme_node_add_list in drupal-6/modules/node/node.pages.inc
Display the list of available node types for node creation.
theme_taxonomy_term_page in drupal-6/modules/taxonomy/taxonomy.pages.inc
Render a taxonomy term page HTML output.
theme_trigger_display in drupal-6/modules/trigger/trigger.admin.inc
Display actions assigned to this hook-op combination in a table.
token_token_values in contrib-6/token/token.module
Sample implementation of hook_token_values().
user_register in drupal-6/modules/user/user.module
Form builder; The user registration form.
views_ui_preview in contrib-6/views/includes/admin.inc
Page callback for the live preview.
_panels_mini_panels_mini_content_type_content_type in contrib-6/panels/panels_mini/plugins/content_types/panels_mini.inc
Return an info array describing a single mini panel.
_views_content_panes_content_type in contrib-6/ctools/views_content/plugins/content_types/views_panes.inc
_views_content_views_content_type in contrib-6/ctools/views_content/plugins/content_types/views.inc
Create the content type info array to give back to ctools for a given display.

Code

drupal-6/modules/filter/filter.module, line 962

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

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options