filter_xss_admin

Versions
4.7 – 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.

▾ 14 functions call filter_xss_admin()

actions_synchronize in includes/actions.inc
Synchronize actions that are provided by modules.
contact_mail_page in modules/contact/contact.pages.inc
drupal_site_offline in includes/common.inc
Generates a site off-line message.
node_help in modules/node/node.module
Implementation of hook_help().
node_overview_types in modules/node/content_types.inc
Displays the content type admin overview page.
taxonomy_form in modules/taxonomy/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_alter in 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 modules/forum/forum.module
Process variables to format a forum listing.
template_preprocess_maintenance_page in 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 includes/theme.inc
Process variables for page.tpl.php
theme_form_element in includes/form.inc
Return a themed form element.
theme_node_add_list in modules/node/node.pages.inc
Display the list of available node types for node creation.
theme_taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
Render a taxonomy term page HTML output.
user_register in modules/user/user.module
Form builder; The user registration form.

Code

modules/filter/filter.module, line 940

<?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'));
}
?>
Login or register to post comments
 
 

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.