| @@ 57-63 (lines=7) @@ | ||
| 54 | */ |
|
| 55 | function smallworld_cleanup($text) |
|
| 56 | { |
|
| 57 | if (is_array($text)) { |
|
| 58 | foreach ($text as $key => $value) { |
|
| 59 | $text[$key] = smallworld_cleanup_string($value); |
|
| 60 | } |
|
| 61 | } else { |
|
| 62 | $text = smallworld_cleanup_string($text); |
|
| 63 | } |
|
| 64 | ||
| 65 | return $text; |
|
| 66 | } |
|
| @@ 89-95 (lines=7) @@ | ||
| 86 | */ |
|
| 87 | function smallworld_sanitize($text) |
|
| 88 | { |
|
| 89 | if (is_array($text)) { |
|
| 90 | foreach ($text as $key => $value) { |
|
| 91 | $text[$key] = smallworld_sanitize_string($value); |
|
| 92 | } |
|
| 93 | } else { |
|
| 94 | $text = smallworld_sanitize_string($text); |
|
| 95 | } |
|
| 96 | ||
| 97 | return $text; |
|
| 98 | } |
|