field_filter_xss
function field_filter_xss
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
File
- modules/field/field.module, line 756
- Attach custom data fields to Drupal entities.
Code
function field_filter_xss($string) { return filter_xss($string, _field_filter_xss_allowed_tags()); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.module/function/field_filter_xss/7.x