You are here

function content_allowed_values_filter_html in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 content.module \content_allowed_values_filter_html()

Filter out HTML from allowed values array while leaving entities unencoded.

See also

content_allowed_values()

optionwidgets_select_process()

content_handler_filter_many_to_one::allowed_values()

2 calls to content_allowed_values_filter_html()
content_handler_filter_many_to_one::allowed_values in includes/views/handlers/content_handler_filter_many_to_one.inc
optionwidgets_select_process in modules/optionwidgets/optionwidgets.module
Process an individual element.

File

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

Code

function content_allowed_values_filter_html(&$options) {
  foreach ($options as $key => $opt) {
    if (is_array($opt)) {
      content_allowed_values_filter_html($options[$key]);
    }
    else {
      $options[$key] = html_entity_decode(strip_tags($opt), ENT_QUOTES);
    }
  }
}