function facetapi_keys_encode in Facet API 6
Encodes search keys before submit to prevent plus signs from being converted to spaces.
Parameters
$keys: A string containing the search keys.
Return value
A string with special characters encoded.
1 call to facetapi_keys_encode()
- facetapi_search_form_submit in ./
facetapi.module - Processes search_form form submissions.
File
- ./
facetapi.module, line 279 - An abstracted facet API that can be used by various search backens.
Code
function facetapi_keys_encode($keys) {
return str_replace('+', '%2B', $keys);
}