@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | { |
66 | 66 | if (!isset($_GET['unsanitized'])) { |
67 | 67 | $search = array( |
68 | - '/\>[^\S ]+/s', // strip whitespaces after tags, except space |
|
69 | - '/[^\S ]+\</s', // strip whitespaces before tags, except space |
|
70 | - '/(\s)+/s', // shorten multiple whitespace sequences |
|
68 | + '/\>[^\S ]+/s', // strip whitespaces after tags, except space |
|
69 | + '/[^\S ]+\</s', // strip whitespaces before tags, except space |
|
70 | + '/(\s)+/s', // shorten multiple whitespace sequences |
|
71 | 71 | '/<!--(.|\s)*?-->/' // Remove HTML comments |
72 | 72 | ); |
73 | 73 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public static function utf8Convert($array) |
96 | 96 | { |
97 | - array_walk_recursive($array, function (&$item) { |
|
97 | + array_walk_recursive($array, function(&$item) { |
|
98 | 98 | if (!mb_detect_encoding($item, 'utf-8', true)) { |
99 | 99 | $item = utf8_encode($item); |
100 | 100 | } |