aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init/sanitize.php
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-05-27 17:21:01 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-05-27 17:21:01 +0000
commit9909e4f125cd32074c8f680529cf96620a4d93d5 (patch)
tree6444b7ea73c773eb5bf025aa96a862596d7db0fb /functions/init/sanitize.php
parent240478eaa4215572691e01fc79ce2dedf9767337 (diff)
downloadphpicalendar-9909e4f125cd32074c8f680529cf96620a4d93d5.tar.gz
phpicalendar-9909e4f125cd32074c8f680529cf96620a4d93d5.tar.bz2
phpicalendar-9909e4f125cd32074c8f680529cf96620a4d93d5.zip
Fix tab/newline parsing
Diffstat (limited to 'functions/init/sanitize.php')
-rw-r--r--functions/init/sanitize.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/init/sanitize.php b/functions/init/sanitize.php
index da9fb3f..39b8246 100644
--- a/functions/init/sanitize.php
+++ b/functions/init/sanitize.php
@@ -60,7 +60,8 @@ function sanitizeForWeb($string) {
$string = str_replace('"', '&#34;', $string);
$string = str_replace("\n", '<br />', $string);
-
+ $string = str_replace("\t", ' &nbsp; &nbsp; ', $string);
+
return $string;
}

© 2014-2021 Faster IT GmbH | imprint | privacy policy