You are here

function filter_xss_admin in Drupal 6

Same name and namespace in other branches
  1. 4 modules/filter.module \filter_xss_admin()
  2. 5 modules/filter/filter.module \filter_xss_admin()
  3. 7 includes/common.inc \filter_xss_admin()

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

18 calls to filter_xss_admin()
contact_mail_page in modules/contact/contact.pages.inc
drupal_site_offline in includes/common.inc
Generates a site off-line message.
menu_overview_page in modules/menu/menu.admin.inc
Menu callback which shows an overview page of all the custom menus and their descriptions.
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.

... See full list

File

modules/filter/filter.module, line 962
Framework for handling filtering of content.

Code

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