You are here

function _multiselect_allowed_values_filter_html in Multiselect 7

Copied from D6 CCK content module. Not sure where this went in D7. Filter out HTML from allowed values array while leaving entities unencoded.

1 call to _multiselect_allowed_values_filter_html()
_multiselect_build_widget_code in ./multiselect.module
Build the widget HTML code.

File

./multiselect.module, line 207
Allows users to select multiple items in an easier way than the normal node-reference widget.

Code

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