Add removal of duplicate spaces in input strings in MD_STD_IN

This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2020-09-09 00:29:13 +02:00
1 parent 49ab75afe8
commit 0bfd6c3765
1 file changed
+3
+3
View File
@@ -78,6 +78,9 @@ final public static function sanitize_text($input):string {
FILTER_FLAG_NO_ENCODE_QUOTES);
if ($output === false) return "";
while (strpos($output, " ") !== false) {
$output = str_replace(" ", " ", $output);
}
return trim($output);