aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init/sanitize.php
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-05-20 16:44:20 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-05-20 16:44:20 +0000
commitf5cfc55764e413a120f414e31ed608249303c27b (patch)
treefd4b9b1e301d16561ec52a654fea7cca276791ca /functions/init/sanitize.php
parent158c4e9b745749df5ee20dc05a625f06b27ac693 (diff)
downloadphpicalendar-f5cfc55764e413a120f414e31ed608249303c27b.tar.gz
phpicalendar-f5cfc55764e413a120f414e31ed608249303c27b.tar.bz2
phpicalendar-f5cfc55764e413a120f414e31ed608249303c27b.zip
Fix line breaks in sanitizeForWeb()
Diffstat (limited to 'functions/init/sanitize.php')
-rw-r--r--functions/init/sanitize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/init/sanitize.php b/functions/init/sanitize.php
index 5d72cad..5e9d57e 100644
--- a/functions/init/sanitize.php
+++ b/functions/init/sanitize.php
@@ -42,7 +42,7 @@ function sanitizeForWeb($string) {
$string = str_replace('\'', '&#39;', $string);
$string = str_replace('"', '&#34;', $string);
- $string = str_replace('<br />', "\n", $string);
+ $string = str_replace("\n", '<br />', $string);
return $string;
}

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