You are here

function getlocations_apoclean in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_apoclean()

Function to run string through check_plain but then restore apostrophes

Return value

Returns string

9 calls to getlocations_apoclean()
getlocations_blocks_city_get in modules/getlocations_blocks/getlocations_blocks.module
getlocations_blocks_postalcode_get in modules/getlocations_blocks/getlocations_blocks.module
getlocations_blocks_province_get in modules/getlocations_blocks/getlocations_blocks.module
getlocations_fields_handler_argument_city::query in modules/getlocations_fields/handlers/getlocations_fields_handler_argument_city.inc
Set up the query for this argument.
getlocations_fields_handler_argument_postcode::query in modules/getlocations_fields/handlers/getlocations_fields_handler_argument_postcode.inc
Set up the query for this argument.

... See full list

File

./getlocations.module, line 5748
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_apoclean($string) {
  $string = trim($string);
  $string = check_plain($string);
  return htmlspecialchars_decode($string, ENT_QUOTES);
}