field_filter_xss

Versions
7
field_filter_xss($string)

Like filter_xss_admin(), but with a shorter list of allowed tags.

Used for items entered by administrators, like field descriptions, allowed values, where some (mainly inline) mark-up may be desired (so check_plain() is not acceptable).

Related topics

▾ 4 functions call field_filter_xss()

field_default_form in modules/field/field.form.inc
Create a separate form element for each field.
field_multiple_value_form in modules/field/field.form.inc
Special handling to create form elements for multiple values.
list_allowed_values_list in modules/field/modules/list/list.module
Create an array of the allowed values for this field.
number_field_widget in modules/field/modules/number/number.module
Implement hook_field_widget().

Code

modules/field/field.module, line 455

<?php
function field_filter_xss($string) {
  return filter_xss($string, _field_filter_xss_allowed_tags());
}
?>
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.