@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @return $result, escaped string. |
59 | 59 | */ |
60 | 60 | public function escapeHTMLattr($value) { |
61 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
61 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
62 | 62 | return "&#x" . bin2hex($matches[0]) . ";"; |
63 | 63 | }, |
64 | 64 | $value); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @return $result, escaped string. |
73 | 73 | */ |
74 | 74 | public function escapeJs($value) { |
75 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
75 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
76 | 76 | return "\\x" . bin2hex($matches[0]); |
77 | 77 | }, |
78 | 78 | $value); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @return $result, escaped string. |
88 | 88 | */ |
89 | 89 | public function escapeCSS($value) { |
90 | - $result = preg_replace_callback("/[\W]/", function ($matches) { |
|
90 | + $result = preg_replace_callback("/[\W]/", function($matches) { |
|
91 | 91 | return "\\" . bin2hex($matches[0]) . " "; |
92 | 92 | }, |
93 | 93 | $value); |