You are here

function content_filter_xss in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 content.module \content_filter_xss()
  2. 6.2 content.module \content_filter_xss()

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).

9 calls to content_filter_xss()
fieldgroup_form_alter in ./fieldgroup.module
fieldgroup_nodeapi in ./fieldgroup.module
nodereference_widget in ./nodereference.module
Implementation of hook_widget().
number_allowed_values in ./number.module
Create an array of the allowed values for this field
number_widget in ./number.module
Implementation of hook_widget().

... See full list

1 string reference to 'content_filter_xss'
number_field_formatter in ./number.module
Implementation of hook_field_formatter().

File

./content.module, line 975
Allows administrators to associate custom fields to content types.

Code

function content_filter_xss($string) {
  return filter_xss($string, _content_filter_xss_allowed_tags());
}